mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-26 15:03:14 +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
@@ -15,11 +15,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class AlvearyFrame {
|
||||
public static int slotFrame;
|
||||
|
||||
static {
|
||||
AlvearyFrame.slotFrame = 0;
|
||||
}
|
||||
public static int slotFrame = 0;
|
||||
|
||||
public static class PackageAlvearyFrame extends AlvearyMachine.AlvearyPackage implements IMachineInformation {
|
||||
public PackageAlvearyFrame() {
|
||||
|
||||
@@ -19,11 +19,7 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import java.util.Random;
|
||||
|
||||
public class AlvearyHatchery {
|
||||
public static int[] slotLarvae;
|
||||
|
||||
static {
|
||||
AlvearyHatchery.slotLarvae = new int[]{0, 1, 2, 3, 4};
|
||||
}
|
||||
public static int[] slotLarvae = new int[]{0, 1, 2, 3, 4};
|
||||
|
||||
public static class PackageAlvearyHatchery extends AlvearyMachine.AlvearyPackage implements IMachineInformation {
|
||||
public PackageAlvearyHatchery() {
|
||||
|
||||
@@ -21,8 +21,8 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class AlvearyMutator {
|
||||
public static int slotMutator;
|
||||
static Map<ItemStack, Float> mutations;
|
||||
public static int slotMutator = 0;
|
||||
static Map<ItemStack, Float> mutations = new HashMap<>();
|
||||
|
||||
public static boolean isMutationItem(final ItemStack item) {
|
||||
return getMutationMult(item) > 0.0f;
|
||||
@@ -51,11 +51,6 @@ public class AlvearyMutator {
|
||||
return AlvearyMutator.mutations.keySet();
|
||||
}
|
||||
|
||||
static {
|
||||
AlvearyMutator.slotMutator = 0;
|
||||
AlvearyMutator.mutations = new HashMap<>();
|
||||
}
|
||||
|
||||
public static class PackageAlvearyMutator extends AlvearyMachine.AlvearyPackage implements IMachineInformation {
|
||||
public PackageAlvearyMutator() {
|
||||
super("mutator", ExtraBeeTexture.AlvearyMutator.getTexture(), false);
|
||||
|
||||
@@ -27,11 +27,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class AlvearyStimulator {
|
||||
public static int slotCircuit;
|
||||
|
||||
static {
|
||||
AlvearyStimulator.slotCircuit = 0;
|
||||
}
|
||||
public static int slotCircuit = 0;
|
||||
|
||||
public static class PackageAlvearyStimulator extends AlvearyMachine.AlvearyPackage implements IMachineInformation {
|
||||
public PackageAlvearyStimulator() {
|
||||
|
||||
@@ -9,13 +9,8 @@ import binnie.core.mod.config.PropPercentage;
|
||||
public class ConfigurationMachines {
|
||||
@ConfigProperty(key = "isolatorConsumptionChance", comment = {"Percentage chance of Isolator consuming bee, in x%."})
|
||||
@PropPercentage
|
||||
public static int isolatorConsumptionChance;
|
||||
public static int isolatorConsumptionChance = 30;
|
||||
@ConfigProperty(key = "geneticErrorModifier", comment = {"Modifier that changes how severe splicer/inoculator erros are.", "0 would result in no errors, even for awful serums.", "2.0 would result in twice as severe errors"})
|
||||
@PropDouble
|
||||
public static double geneticErrorModifier;
|
||||
|
||||
static {
|
||||
ConfigurationMachines.isolatorConsumptionChance = 30;
|
||||
ConfigurationMachines.geneticErrorModifier = 1.0;
|
||||
}
|
||||
public static double geneticErrorModifier = 1.0;
|
||||
}
|
||||
@@ -9,25 +9,18 @@ import binnie.core.mod.config.PropInteger;
|
||||
public class ConfigurationMain {
|
||||
@ConfigProperty(key = "canQuarryMineHives")
|
||||
@PropBoolean
|
||||
public static boolean canQuarryMineHives;
|
||||
public static boolean canQuarryMineHives = true;
|
||||
@ConfigProperty(key = "waterHiveRate")
|
||||
@PropInteger
|
||||
public static int waterHiveRate;
|
||||
public static int waterHiveRate = 1;
|
||||
@ConfigProperty(key = "rockHiveRate")
|
||||
@PropInteger
|
||||
public static int rockHiveRate;
|
||||
public static int rockHiveRate = 2;
|
||||
@ConfigProperty(key = "netherHiveRate")
|
||||
@PropInteger
|
||||
public static int netherHiveRate;
|
||||
public static int netherHiveRate = 2;
|
||||
@ConfigProperty(key = "marbleHiveRate")
|
||||
@PropInteger
|
||||
public static int marbleHiveRate;
|
||||
public static int marbleHiveRate = 2;
|
||||
|
||||
static {
|
||||
ConfigurationMain.canQuarryMineHives = true;
|
||||
ConfigurationMain.waterHiveRate = 1;
|
||||
ConfigurationMain.rockHiveRate = 2;
|
||||
ConfigurationMain.netherHiveRate = 2;
|
||||
ConfigurationMain.marbleHiveRate = 2;
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class ExtraBeeMutation implements IBeeMutation {
|
||||
public static List<IBeeMutation> mutations;
|
||||
public static List<IBeeMutation> mutations = new ArrayList<>();
|
||||
MutationRequirement req;
|
||||
IAlleleBeeSpecies species0;
|
||||
IAlleleBeeSpecies species1;
|
||||
@@ -281,10 +281,6 @@ public class ExtraBeeMutation implements IBeeMutation {
|
||||
return Binnie.Genetics.getBeeRoot();
|
||||
}
|
||||
|
||||
static {
|
||||
ExtraBeeMutation.mutations = new ArrayList<>();
|
||||
}
|
||||
|
||||
abstract static class MutationRequirement {
|
||||
public abstract String[] tooltip();
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
public class ControlPunnett extends Control {
|
||||
static int boxWidth;
|
||||
static int boxHeight;
|
||||
static int boxWidth = 80;
|
||||
static int boxHeight = 28;
|
||||
|
||||
protected ControlPunnett(final IWidget parent, final float x, final float y) {
|
||||
super(parent, x, y, ControlPunnett.boxWidth * 3, ControlPunnett.boxWidth * 3);
|
||||
@@ -70,8 +70,4 @@ public class ControlPunnett extends Control {
|
||||
new ControlText(this, new IArea(0.0f, ControlPunnett.boxHeight * 2, ControlPunnett.boxWidth, ControlPunnett.boxHeight), primary2.getName(), TextJustification.TopCenter).setColour(11184810);
|
||||
}
|
||||
|
||||
static {
|
||||
ControlPunnett.boxWidth = 80;
|
||||
ControlPunnett.boxHeight = 28;
|
||||
}
|
||||
}
|
||||
@@ -15,10 +15,10 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
import java.util.Random;
|
||||
|
||||
public class ModuleGeneration implements IWorldGenerator, IInitializable {
|
||||
static int waterRate;
|
||||
static int rockRate;
|
||||
static int netherRate;
|
||||
static int marbleRate;
|
||||
static int waterRate = 2;
|
||||
static int rockRate = 2;
|
||||
static int netherRate = 2;
|
||||
static int marbleRate = 2;
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
@@ -76,11 +76,4 @@ public class ModuleGeneration implements IWorldGenerator, IInitializable {
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
ModuleGeneration.waterRate = 2;
|
||||
ModuleGeneration.rockRate = 2;
|
||||
ModuleGeneration.netherRate = 2;
|
||||
ModuleGeneration.marbleRate = 2;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user