mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 07:56:01 +00:00
Decompiler mess cleanup
This commit is contained in:
1 parent
2ed7e79478
commit
7e1e92ae2c
82 files changed
+206
-603
No files matched your search
@@ -9,7 +9,7 @@ import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public class CreativeTabGenetics extends CreativeTabs {
|
||||
public static CreativeTabs instance;
|
||||
public static CreativeTabs instance = new CreativeTabGenetics();
|
||||
|
||||
@Override
|
||||
public ItemStack getIconItemStack() {
|
||||
@@ -37,7 +37,4 @@ public class CreativeTabGenetics extends CreativeTabs {
|
||||
return null;
|
||||
}
|
||||
|
||||
static {
|
||||
CreativeTabGenetics.instance = new CreativeTabGenetics();
|
||||
}
|
||||
}
|
||||
@@ -25,12 +25,12 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
|
||||
@Mod(modid = Constants.GENETICS_MOD_ID, name = "Binnie's Genetics", useMetadata = true, dependencies = "required-after:" + Constants.CORE_MOD_ID)
|
||||
public class Genetics extends AbstractMod {
|
||||
public static ItemSerumArray itemSerumArray;
|
||||
public static ItemSerumArray itemSerumArray = null;
|
||||
@Mod.Instance(Constants.GENETICS_MOD_ID)
|
||||
public static Genetics instance;
|
||||
@SidedProxy(clientSide = "binnie.genetics.proxy.ProxyClient", serverSide = "binnie.genetics.proxy.ProxyServer")
|
||||
public static Proxy proxy;
|
||||
public static String channel;
|
||||
public static String channel = "GEN";
|
||||
public static Item itemGenetics;
|
||||
public static Item itemSerum;
|
||||
public static Item itemSequencer;
|
||||
@@ -100,11 +100,6 @@ public class Genetics extends AbstractMod {
|
||||
return BinnieCore.isGeneticsActive();
|
||||
}
|
||||
|
||||
static {
|
||||
Genetics.itemSerumArray = null;
|
||||
Genetics.channel = "GEN";
|
||||
}
|
||||
|
||||
public static class PacketHandler extends BinniePacketHandler {
|
||||
public PacketHandler() {
|
||||
super(Genetics.instance);
|
||||
|
||||
@@ -26,7 +26,7 @@ public enum GeneticsTexture implements IBinnieTexture {
|
||||
|
||||
String texture;
|
||||
ResourceType type;
|
||||
public static BinnieIcon dnaIcon;
|
||||
public static BinnieIcon dnaIcon = Binnie.Resource.getItemIcon(Genetics.instance, "dna");
|
||||
|
||||
GeneticsTexture(final ResourceType base, final String texture) {
|
||||
this.texture = texture;
|
||||
@@ -38,7 +38,4 @@ public enum GeneticsTexture implements IBinnieTexture {
|
||||
return Binnie.Resource.getPNG(Genetics.instance, this.type, this.texture);
|
||||
}
|
||||
|
||||
static {
|
||||
GeneticsTexture.dnaIcon = Binnie.Resource.getItemIcon(Genetics.instance, "dna");
|
||||
}
|
||||
}
|
||||
@@ -31,13 +31,13 @@ import javax.annotation.Nullable;
|
||||
import java.util.*;
|
||||
|
||||
public class Acclimatiser {
|
||||
public static final int[] slotReserve;
|
||||
public static final int[] slotReserve = new int[]{0, 1, 2, 3};
|
||||
public static final int slotTarget = 4;
|
||||
public static final int[] slotAcclimatiser;
|
||||
public static final int[] slotDone;
|
||||
private static List<ToleranceSystem> toleranceSystems;
|
||||
private static Map<ItemStack, Float> temperatureItems;
|
||||
private static Map<ItemStack, Float> humidityItems;
|
||||
public static final int[] slotAcclimatiser = new int[]{5, 6, 7};
|
||||
public static final int[] slotDone = new int[]{8, 9, 10, 11};
|
||||
private static List<ToleranceSystem> toleranceSystems = new ArrayList<>();
|
||||
private static Map<ItemStack, Float> temperatureItems = new HashMap<>();
|
||||
private static Map<ItemStack, Float> humidityItems = new HashMap<>();
|
||||
|
||||
@Nullable
|
||||
private static ToleranceSystem getToleranceSystem(final ItemStack stack, final ItemStack acclim) {
|
||||
@@ -169,15 +169,6 @@ public class Acclimatiser {
|
||||
return Tolerance.get(both[avg]);
|
||||
}
|
||||
|
||||
static {
|
||||
slotReserve = new int[]{0, 1, 2, 3};
|
||||
slotAcclimatiser = new int[]{5, 6, 7};
|
||||
slotDone = new int[]{8, 9, 10, 11};
|
||||
Acclimatiser.toleranceSystems = new ArrayList<>();
|
||||
Acclimatiser.temperatureItems = new HashMap<>();
|
||||
Acclimatiser.humidityItems = new HashMap<>();
|
||||
}
|
||||
|
||||
public static class PackageAcclimatiser extends GeneticMachine.PackageGeneticBase implements IMachineInformation {
|
||||
public PackageAcclimatiser() {
|
||||
super("acclimatiser", GeneticsTexture.Acclimatiser, 9857609, true);
|
||||
|
||||
@@ -36,9 +36,9 @@ import org.lwjgl.opengl.GL11;
|
||||
import java.util.Random;
|
||||
|
||||
public class Analyser {
|
||||
public static final int[] slotReserve;
|
||||
public static final int[] slotReserve = new int[]{0, 1, 2, 3, 4, 5};
|
||||
public static final int slotTarget = 6;
|
||||
public static final int[] slotFinished;
|
||||
public static final int[] slotFinished = new int[]{7, 8, 9, 10, 11, 12};
|
||||
public static final int slotDye = 13;
|
||||
|
||||
public static boolean isAnalysable(final ItemStack stack) {
|
||||
@@ -74,11 +74,6 @@ public class Analyser {
|
||||
return stack;
|
||||
}
|
||||
|
||||
static {
|
||||
slotReserve = new int[]{0, 1, 2, 3, 4, 5};
|
||||
slotFinished = new int[]{7, 8, 9, 10, 11, 12};
|
||||
}
|
||||
|
||||
public static class PackageAnalyser extends GeneticMachine.PackageGeneticBase implements IMachineInformation {
|
||||
public PackageAnalyser() {
|
||||
super("analyser", GeneticsTexture.Analyser, 9961727, true);
|
||||
|
||||
@@ -29,15 +29,11 @@ import java.util.Random;
|
||||
|
||||
public class Genepool {
|
||||
public static final int slotBee = 0;
|
||||
public static final int[] slotReserve;
|
||||
public static final int[] slotReserve = new int[]{1, 2, 3, 4, 5, 6};
|
||||
public static final int tankDNA = 0;
|
||||
public static final int tankEthanol = 1;
|
||||
public static final int slotEnzyme = 7;
|
||||
|
||||
static {
|
||||
slotReserve = new int[]{1, 2, 3, 4, 5, 6};
|
||||
}
|
||||
|
||||
public static class PackageGenepool extends GeneticMachine.PackageGeneticBase implements IMachineInformation {
|
||||
public PackageGenepool() {
|
||||
super("genepool", GeneticsTexture.Genepool, 12661942, true);
|
||||
|
||||
@@ -33,12 +33,12 @@ import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class Incubator {
|
||||
public static final int[] slotQueue;
|
||||
public static final int[] slotQueue = new int[]{0, 1, 2};
|
||||
public static final int slotIncubator = 3;
|
||||
public static final int[] slotOutput;
|
||||
public static final int[] slotOutput = new int[]{4, 5, 6};
|
||||
public static final int tankInput = 0;
|
||||
public static final int tankOutput = 1;
|
||||
private static List<IIncubatorRecipe> RECIPES;
|
||||
private static List<IIncubatorRecipe> RECIPES = new ArrayList<>();
|
||||
|
||||
public static void addRecipes() {
|
||||
Incubator.RECIPES.add(new IncubatorRecipe(GeneticsItems.GrowthMedium.get(1), Binnie.Liquid.getLiquidStack("water", 25), GeneticLiquid.GrowthMedium.get(25), 0.2f));
|
||||
@@ -66,12 +66,6 @@ public class Incubator {
|
||||
return Collections.unmodifiableList(RECIPES);
|
||||
}
|
||||
|
||||
static {
|
||||
slotQueue = new int[]{0, 1, 2};
|
||||
slotOutput = new int[]{4, 5, 6};
|
||||
Incubator.RECIPES = new ArrayList<>();
|
||||
}
|
||||
|
||||
public static class PackageIncubator extends GeneticMachine.PackageGeneticBase implements IMachineInformation {
|
||||
public PackageIncubator() {
|
||||
super("incubator", GeneticsTexture.Incubator, 16767313, true);
|
||||
|
||||
@@ -44,11 +44,11 @@ import java.util.Random;
|
||||
|
||||
public class Inoculator {
|
||||
public static final int slotSerumVial = 0;
|
||||
public static final int[] slotSerumReserve;
|
||||
public static final int[] slotSerumExpended;
|
||||
public static final int[] slotReserve;
|
||||
public static final int[] slotSerumReserve = new int[]{1, 2};
|
||||
public static final int[] slotSerumExpended = new int[]{3, 4};
|
||||
public static final int[] slotReserve = new int[]{5, 6, 7, 8};
|
||||
public static final int slotTarget = 9;
|
||||
public static final int[] slotFinished;
|
||||
public static final int[] slotFinished = new int[]{10, 11, 12, 13};
|
||||
public static final int tankVector = 0;
|
||||
|
||||
public static void setGene(final IGene gene, final ItemStack target, final int chromoN) {
|
||||
@@ -69,13 +69,6 @@ public class Inoculator {
|
||||
target.setTagCompound(beeNBT);
|
||||
}
|
||||
|
||||
static {
|
||||
slotSerumReserve = new int[]{1, 2};
|
||||
slotSerumExpended = new int[]{3, 4};
|
||||
slotReserve = new int[]{5, 6, 7, 8};
|
||||
slotFinished = new int[]{10, 11, 12, 13};
|
||||
}
|
||||
|
||||
public static class PackageInoculator extends GeneticMachine.PackageGeneticBase implements IMachineInformation {
|
||||
public PackageInoculator() {
|
||||
super("inoculator", GeneticsTexture.Inoculator, 14819893, true);
|
||||
|
||||
@@ -30,17 +30,12 @@ import java.util.Random;
|
||||
public class Isolator {
|
||||
public static final int slotEnzyme = 0;
|
||||
public static final int slotSequencerVial = 1;
|
||||
public static final int[] slotReserve;
|
||||
public static final int[] slotReserve = new int[]{2, 3, 4};
|
||||
public static final int slotTarget = 5;
|
||||
public static final int slotResult = 6;
|
||||
public static final int[] slotFinished;
|
||||
public static final int[] slotFinished = new int[]{7, 8, 9, 10, 11, 12};
|
||||
public static final int tankEthanol = 0;
|
||||
|
||||
static {
|
||||
slotReserve = new int[]{2, 3, 4};
|
||||
slotFinished = new int[]{7, 8, 9, 10, 11, 12};
|
||||
}
|
||||
|
||||
public static class PackageIsolator extends GeneticMachine.PackageGeneticBase implements IMachineInformation {
|
||||
public PackageIsolator() {
|
||||
super("isolator", GeneticsTexture.Isolator, 16740111, true);
|
||||
|
||||
@@ -12,7 +12,7 @@ import org.lwjgl.opengl.GL11;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class MachineRendererGenetics {
|
||||
public static MachineRendererGenetics instance;
|
||||
public static MachineRendererGenetics instance = new MachineRendererGenetics();
|
||||
public final RenderItem customRenderItem;
|
||||
private ModelMachine model;
|
||||
|
||||
@@ -62,7 +62,4 @@ public class MachineRendererGenetics {
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
static {
|
||||
MachineRendererGenetics.instance = new MachineRendererGenetics();
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class MachineRendererLab {
|
||||
public static MachineRendererLab instance;
|
||||
public static MachineRendererLab instance = new MachineRendererLab();
|
||||
private final EntityItem dummyEntityItem;
|
||||
private final EntityItem[] itemSides;
|
||||
// private final RenderItem customRenderItem;
|
||||
@@ -106,7 +106,4 @@ public class MachineRendererLab {
|
||||
// GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
static {
|
||||
MachineRendererLab.instance = new MachineRendererLab();
|
||||
}
|
||||
}
|
||||
@@ -31,13 +31,8 @@ public class Polymeriser {
|
||||
public static final int tankDNA = 1;
|
||||
public static final int slotSerum = 0;
|
||||
public static final int slotGold = 1;
|
||||
public static final int[] slotSerumReserve;
|
||||
public static final int[] slotSerumFinished;
|
||||
|
||||
static {
|
||||
slotSerumReserve = new int[]{2, 3, 4, 5};
|
||||
slotSerumFinished = new int[]{6, 7, 8, 9};
|
||||
}
|
||||
public static final int[] slotSerumReserve = new int[]{2, 3, 4, 5};
|
||||
public static final int[] slotSerumFinished = new int[]{6, 7, 8, 9};
|
||||
|
||||
public static class PackagePolymeriser extends GeneticMachine.PackageGeneticBase implements IMachineInformation {
|
||||
public PackagePolymeriser() {
|
||||
@@ -112,7 +107,7 @@ public class Polymeriser {
|
||||
}
|
||||
|
||||
public static class ComponentPolymeriserLogic extends ComponentProcessSetCost implements IProcess {
|
||||
private static float chargePerProcess;
|
||||
private static float chargePerProcess = 0.4f;
|
||||
private float dnaDrain;
|
||||
private float bacteriaDrain;
|
||||
|
||||
@@ -197,10 +192,6 @@ public class Polymeriser {
|
||||
super.onFinishTask();
|
||||
this.getUtil().damageItem(0, -1);
|
||||
}
|
||||
|
||||
static {
|
||||
ComponentPolymeriserLogic.chargePerProcess = 0.4f;
|
||||
}
|
||||
}
|
||||
|
||||
public static class SlotValidatorUnfilledSerum extends SlotValidator {
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.Random;
|
||||
|
||||
public class Sequencer {
|
||||
public static final int slotDye = 0;
|
||||
public static final int[] slotReserve;
|
||||
public static final int[] slotReserve = new int[]{1, 2, 3, 4};
|
||||
public static final int slotTarget = 5;
|
||||
public static final int slotDone = 6;
|
||||
public static BinnieIcon fxSeqA;
|
||||
@@ -37,10 +37,6 @@ public class Sequencer {
|
||||
public static BinnieIcon fxSeqT;
|
||||
public static BinnieIcon fxSeqC;
|
||||
|
||||
static {
|
||||
slotReserve = new int[]{1, 2, 3, 4};
|
||||
}
|
||||
|
||||
public static class PackageSequencer extends GeneticMachine.PackageGeneticBase implements IMachineInformation {
|
||||
public PackageSequencer() {
|
||||
super("sequencer", GeneticsTexture.Sequencer, 12058418, true);
|
||||
|
||||
@@ -45,11 +45,11 @@ import java.util.Random;
|
||||
|
||||
public class Splicer {
|
||||
public static final int slotSerumVial = 0;
|
||||
public static final int[] slotSerumReserve;
|
||||
public static final int[] slotSerumExpended;
|
||||
public static final int[] slotReserve;
|
||||
public static final int[] slotSerumReserve = new int[]{1, 2};
|
||||
public static final int[] slotSerumExpended = new int[]{3, 4};
|
||||
public static final int[] slotReserve = new int[]{5, 6, 7, 8, 9};
|
||||
public static final int slotTarget = 9;
|
||||
public static final int[] slotFinished;
|
||||
public static final int[] slotFinished = new int[]{10, 11, 12, 13};
|
||||
|
||||
public static void setGene(final IGene gene, final ItemStack target, final int chromoN) {
|
||||
int chromosomeID;
|
||||
@@ -69,13 +69,6 @@ public class Splicer {
|
||||
target.setTagCompound(beeNBT);
|
||||
}
|
||||
|
||||
static {
|
||||
slotSerumReserve = new int[]{1, 2};
|
||||
slotSerumExpended = new int[]{3, 4};
|
||||
slotReserve = new int[]{5, 6, 7, 8, 9};
|
||||
slotFinished = new int[]{10, 11, 12, 13};
|
||||
}
|
||||
|
||||
public static class PackageSplicer extends AdvGeneticMachine.PackageAdvGeneticBase implements IMachineInformation {
|
||||
public PackageSplicer() {
|
||||
super("splicer", GeneticsTexture.Splicer, 14819893, true);
|
||||
|
||||
Reference in new issue
Block a user