aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/goodgenerator/common
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2022-07-15 14:34:19 +0900
committerGitHub <noreply@github.com>2022-07-15 06:34:19 +0100
commitc0eb617fa5c146b7a222c5461faf14394508cf4b (patch)
treee25d23490122b5c663fd4e2791a81704c0183b00 /src/main/java/goodgenerator/common
parent36301feacf5a33ded24d338ae39985da6080d2bb (diff)
downloadGT5-Unofficial-c0eb617fa5c146b7a222c5461faf14394508cf4b.tar.gz
GT5-Unofficial-c0eb617fa5c146b7a222c5461faf14394508cf4b.tar.bz2
GT5-Unofficial-c0eb617fa5c146b7a222c5461faf14394508cf4b.zip
Expand item limit for Neutron Activator & Add back Low Quality Naquadria Sulphate to the outputs from Concentrated Enriched-Naquadah Sludge (#53)
* Expand item limit for Neutron Activator & Add back Low Quality Naquadria Sulphate to the outputs from Concentrated Enriched-Naquadah Sludge * updateBuildScript & spotlessApply
Diffstat (limited to 'src/main/java/goodgenerator/common')
-rw-r--r--src/main/java/goodgenerator/common/CommonProxy.java8
-rw-r--r--src/main/java/goodgenerator/common/container/NeutronActivatorGUIContainer.java9
-rw-r--r--src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java20
3 files changed, 21 insertions, 16 deletions
diff --git a/src/main/java/goodgenerator/common/CommonProxy.java b/src/main/java/goodgenerator/common/CommonProxy.java
index 7a270b9550..528e165bb4 100644
--- a/src/main/java/goodgenerator/common/CommonProxy.java
+++ b/src/main/java/goodgenerator/common/CommonProxy.java
@@ -5,7 +5,9 @@ import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
public class CommonProxy {
- public void preInit(FMLPreInitializationEvent event){}
- public void init(FMLInitializationEvent event){}
- public void postInit(FMLPostInitializationEvent event){}
+ public void preInit(FMLPreInitializationEvent event) {}
+
+ public void init(FMLInitializationEvent event) {}
+
+ public void postInit(FMLPostInitializationEvent event) {}
}
diff --git a/src/main/java/goodgenerator/common/container/NeutronActivatorGUIContainer.java b/src/main/java/goodgenerator/common/container/NeutronActivatorGUIContainer.java
index 772557957e..c13e290755 100644
--- a/src/main/java/goodgenerator/common/container/NeutronActivatorGUIContainer.java
+++ b/src/main/java/goodgenerator/common/container/NeutronActivatorGUIContainer.java
@@ -1,16 +1,15 @@
package goodgenerator.common.container;
-import goodgenerator.blocks.tileEntity.NeutronActivator;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_Container_MultiMachineEM;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
+import goodgenerator.blocks.tileEntity.NeutronActivator;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import java.nio.ByteBuffer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.ICrafting;
-import java.nio.ByteBuffer;
-
public class NeutronActivatorGUIContainer extends GT_Container_MultiMachineEM {
private int KineticE;
@@ -34,7 +33,7 @@ public class NeutronActivatorGUIContainer extends GT_Container_MultiMachineEM {
if (buffer == null) {
buffer = ByteBuffer.allocate(Integer.BYTES);
}
- if(mTileEntity.isServerSide()) {
+ if (mTileEntity.isServerSide()) {
NeutronActivator tile = (NeutronActivator) mTileEntity.getMetaTileEntity();
if (tile == null) return;
int currentKineticE = tile.getCurrentNeutronKineticEnergy();
@@ -68,7 +67,7 @@ public class NeutronActivatorGUIContainer extends GT_Container_MultiMachineEM {
public void updateProgressBar(int index, int value) {
super.updateProgressBar(index, value);
index = index - 21;
- if(index >= 0 && index < buffer.capacity()) {
+ if (index >= 0 && index < buffer.capacity()) {
buffer.put(index, (byte) value);
}
}
diff --git a/src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java b/src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java
index 9d378dc203..05a5352132 100644
--- a/src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java
+++ b/src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java
@@ -1,17 +1,16 @@
package goodgenerator.common.container;
-import goodgenerator.blocks.tileEntity.YottaFluidTank;
import com.github.technus.tectech.thing.metaTileEntity.multi.base.GT_Container_MultiMachineEM;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
+import goodgenerator.blocks.tileEntity.YottaFluidTank;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import java.nio.ByteBuffer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.ICrafting;
import net.minecraft.util.StatCollector;
-import java.nio.ByteBuffer;
-
public class YOTTankGUIContainer extends GT_Container_MultiMachineEM {
private String currentStore = "";
@@ -36,7 +35,9 @@ public class YOTTankGUIContainer extends GT_Container_MultiMachineEM {
buffer.putChar(Integer.BYTES * 3 + Character.BYTES * (i + currentStore.length()), store.charAt(i));
}
for (int i = 0; i < fluidName.length(); ++i) {
- buffer.putChar(Integer.BYTES * 3 + Character.BYTES * (i + currentStore.length() + store.length()), fluidName.charAt(i));
+ buffer.putChar(
+ Integer.BYTES * 3 + Character.BYTES * (i + currentStore.length() + store.length()),
+ fluidName.charAt(i));
}
sendStateUpdate(clientHandle);
super.addCraftingToCrafters(clientHandle);
@@ -48,7 +49,7 @@ public class YOTTankGUIContainer extends GT_Container_MultiMachineEM {
if (buffer == null) {
buffer = ByteBuffer.allocate(8192);
}
- if(mTileEntity.isServerSide()) {
+ if (mTileEntity.isServerSide()) {
YottaFluidTank tile = (YottaFluidTank) mTileEntity.getMetaTileEntity();
if (tile == null) return;
String newStored = tile.getStored();
@@ -69,7 +70,9 @@ public class YOTTankGUIContainer extends GT_Container_MultiMachineEM {
buffer.putChar(Integer.BYTES * 3 + Character.BYTES * (i + currentStore.length()), store.charAt(i));
}
for (int i = 0; i < fluidName.length(); ++i) {
- buffer.putChar(Integer.BYTES * 3 + Character.BYTES * (i + currentStore.length() + store.length()), fluidName.charAt(i));
+ buffer.putChar(
+ Integer.BYTES * 3 + Character.BYTES * (i + currentStore.length() + store.length()),
+ fluidName.charAt(i));
}
isUpdated = true;
}
@@ -87,7 +90,8 @@ public class YOTTankGUIContainer extends GT_Container_MultiMachineEM {
}
private void sendStateUpdate(ICrafting clientHandle) {
- final int bytes = Integer.BYTES * 3 + Character.BYTES * (currentStore.length() + store.length() + fluidName.length());
+ final int bytes =
+ Integer.BYTES * 3 + Character.BYTES * (currentStore.length() + store.length() + fluidName.length());
for (int i = 0; i < bytes; i++) {
clientHandle.sendProgressBarUpdate(this, i + 300, buffer.get(i));
}
@@ -97,7 +101,7 @@ public class YOTTankGUIContainer extends GT_Container_MultiMachineEM {
public void updateProgressBar(int index, int value) {
super.updateProgressBar(index, value);
index = index - 300;
- if(index >= 0 && index < buffer.capacity()) {
+ if (index >= 0 && index < buffer.capacity()) {
buffer.put(index, (byte) value);
}
}