aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/tectech/thing/metaTileEntity/single
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/tectech/thing/metaTileEntity/single')
-rw-r--r--src/main/java/tectech/thing/metaTileEntity/single/MTEBuckConverter.java2
-rw-r--r--src/main/java/tectech/thing/metaTileEntity/single/MTEDebugStructureWriter.java5
-rw-r--r--src/main/java/tectech/thing/metaTileEntity/single/MTEOwnerDetector.java2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/tectech/thing/metaTileEntity/single/MTEBuckConverter.java b/src/main/java/tectech/thing/metaTileEntity/single/MTEBuckConverter.java
index 0a2a8d756e..eaa0b3cb17 100644
--- a/src/main/java/tectech/thing/metaTileEntity/single/MTEBuckConverter.java
+++ b/src/main/java/tectech/thing/metaTileEntity/single/MTEBuckConverter.java
@@ -41,7 +41,7 @@ public class MTEBuckConverter extends MTETieredMachineBlock implements IAddUIWid
private static GTRenderedTexture BUCK, BUCK_ACTIVE;
public int EUT = 0, AMP = 0;
- private static NumberFormatMUI numberFormat = new NumberFormatMUI();
+ private static final NumberFormatMUI numberFormat = new NumberFormatMUI();
public MTEBuckConverter(int aID, String aName, String aNameRegional, int aTier) {
super(
diff --git a/src/main/java/tectech/thing/metaTileEntity/single/MTEDebugStructureWriter.java b/src/main/java/tectech/thing/metaTileEntity/single/MTEDebugStructureWriter.java
index a03266ac89..5248cf1b80 100644
--- a/src/main/java/tectech/thing/metaTileEntity/single/MTEDebugStructureWriter.java
+++ b/src/main/java/tectech/thing/metaTileEntity/single/MTEDebugStructureWriter.java
@@ -273,7 +273,7 @@ public class MTEDebugStructureWriter extends MTETieredMachineBlock implements IA
xPos,
40);
builder.widget(
- new ButtonWidget().setOnClick((clickData, widget) -> { size = !size; })
+ new ButtonWidget().setOnClick((clickData, widget) -> size = !size)
.setBackground(GTUITextures.BUTTON_STANDARD, overlay)
.setSize(18, 18)
.setPos(xPos, 58));
@@ -283,8 +283,7 @@ public class MTEDebugStructureWriter extends MTETieredMachineBlock implements IA
int changeNumberShift, int changeNumber, int xPos, int yPos) {
builder.widget(
new ButtonWidget()
- .setOnClick(
- (clickData, widget) -> { setter.accept(clickData.shift ? changeNumberShift : changeNumber); })
+ .setOnClick((clickData, widget) -> setter.accept(clickData.shift ? changeNumberShift : changeNumber))
.setBackground(GTUITextures.BUTTON_STANDARD, overlay)
.setSize(18, 18)
.setPos(xPos, yPos));
diff --git a/src/main/java/tectech/thing/metaTileEntity/single/MTEOwnerDetector.java b/src/main/java/tectech/thing/metaTileEntity/single/MTEOwnerDetector.java
index 72547cc613..bdf3e249b9 100644
--- a/src/main/java/tectech/thing/metaTileEntity/single/MTEOwnerDetector.java
+++ b/src/main/java/tectech/thing/metaTileEntity/single/MTEOwnerDetector.java
@@ -109,7 +109,7 @@ public class MTEOwnerDetector extends MTETieredMachineBlock {
@Override
public void onFirstTick(IGregTechTileEntity aBaseMetaTileEntity) {
if (aBaseMetaTileEntity.isServerSide()) {
- if (uuid == null || uuid.length() == 0) {
+ if (uuid == null || uuid.isEmpty()) {
String name = aBaseMetaTileEntity.getOwnerName();
if (!("Player".equals(name))) {
uuid = TecTech.proxy.getUUID(name);