Decompiler mess cleanup

This commit is contained in:
marcin212 committed 2016-10-24 19:33:53 +02:00
1 parent 2ed7e79478
commit 7e1e92ae2c
82 files changed
+206 -603

No files matched your search

@@ -38,7 +38,7 @@ public enum Cocktail {
Vesper("Vesper", Glassware.Cocktail, 15658732),
SexOnTheBeach("Sex on the Beach", Glassware.Highball, 16677426);
static final Map<String, ICocktailIngredient> cocktailIngredients;
static final Map<String, ICocktailIngredient> cocktailIngredients = new HashMap<>();
public String name;
public Glassware glassware;
public int colour;
@@ -84,7 +84,6 @@ public enum Cocktail {
}
static {
cocktailIngredients = new HashMap<>();
Cocktail.Bellini.add(Alcohol.SparklingWine, 2);
Cocktail.Bellini.add(Juice.Peach, 1);
Cocktail.BlackRussian.add(Spirit.Vodka, 5);
@@ -7,7 +7,7 @@ import java.util.HashMap;
import java.util.Map;
public class DrinkManager {
static Map<String, IDrinkLiquid> drinkLiquids;
static Map<String, IDrinkLiquid> drinkLiquids = new HashMap<>();
public static IDrinkLiquid getLiquid(final String id) {
return DrinkManager.drinkLiquids.get(id.toLowerCase());
@@ -26,7 +26,4 @@ public class DrinkManager {
return (fluid != null) ? getLiquid(fluid.getFluid()) : null;
}
static {
DrinkManager.drinkLiquids = new HashMap<>();
}
}
@@ -9,7 +9,7 @@ import java.util.ArrayList;
import java.util.List;
public class NBTShapedRecipes implements IRecipe {
static List<NBTShapedRecipe> recipes;
static List<NBTShapedRecipe> recipes = new ArrayList<>();
@Override
public boolean matches(final InventoryCrafting inventory, final World world) {
@@ -51,7 +51,4 @@ public class NBTShapedRecipes implements IRecipe {
NBTShapedRecipes.recipes.add(nbtShapedRecipe);
}
static {
NBTShapedRecipes.recipes = new ArrayList<>();
}
}
@@ -24,7 +24,7 @@ import java.util.List;
public abstract class BlockDesign extends BlockMetadata implements IMultipassBlock {
IDesignSystem designSystem;
public static final EnumFacing[] RENDER_DIRECTIONS;
public static final EnumFacing[] RENDER_DIRECTIONS = new EnumFacing[]{EnumFacing.DOWN, EnumFacing.UP, EnumFacing.EAST, EnumFacing.WEST, EnumFacing.NORTH, EnumFacing.SOUTH};
@SubscribeEvent
public void onClick(final PlayerInteractEvent.RightClickBlock event) {
@@ -157,7 +157,4 @@ public abstract class BlockDesign extends BlockMetadata implements IMultipassBlo
return 2;
}
static {
RENDER_DIRECTIONS = new EnumFacing[]{EnumFacing.DOWN, EnumFacing.UP, EnumFacing.EAST, EnumFacing.WEST, EnumFacing.NORTH, EnumFacing.SOUTH};
}
}
@@ -6,9 +6,9 @@ import net.minecraft.item.ItemStack;
import java.util.*;
public class CarpentryInterface implements ICarpentryInterface {
static Map<Integer, IDesignMaterial> woodMap;
static Map<Integer, IDesign> designMap;
static Map<String, IDesignCategory> designCategories;
static Map<Integer, IDesignMaterial> woodMap = new LinkedHashMap<>();
static Map<Integer, IDesign> designMap = new LinkedHashMap<>();
static Map<String, IDesignCategory> designCategories = new HashMap<>();
@Override
public boolean registerCarpentryWood(final int index, final IDesignMaterial wood) {
@@ -102,9 +102,4 @@ public class CarpentryInterface implements ICarpentryInterface {
return null;
}
static {
CarpentryInterface.woodMap = new LinkedHashMap<>();
CarpentryInterface.designMap = new LinkedHashMap<>();
CarpentryInterface.designCategories = new HashMap<>();
}
}
@@ -7,7 +7,7 @@ import java.util.Collection;
import java.util.List;
public class DesignerManager {
public static DesignerManager instance;
public static DesignerManager instance = new DesignerManager();;
List<IDesignSystem> systems;
public DesignerManager() {
@@ -26,7 +26,4 @@ public class DesignerManager {
this.systems.add(system);
}
static {
DesignerManager.instance = new DesignerManager();
}
}
@@ -8,9 +8,6 @@ import binnie.core.mod.config.PropBoolean;
public class ConfigurationMain {
@ConfigProperty(key = "lemon.citrus.family", comment = {"Uses reflection to convert the Forestry lemon tree to the Citrus family."})
@PropBoolean
public static boolean alterLemon;
public static boolean alterLemon = true;
static {
ConfigurationMain.alterLemon = true;
}
}
@@ -12,15 +12,15 @@ public enum ExtraTreeTexture implements IBinnieTexture {
String texture;
ResourceType type;
public static String carpenterTexture;
public static String panelerTexture;
public static String tileworkerTexture;
public static String incubatorTexture;
public static String lumbermillTexture;
public static String pressTexture;
public static String distilleryTexture;
public static String breweryTexture;
public static String infuserTexture;
public static String carpenterTexture = "extratrees/carpenter_";
public static String panelerTexture = "extratrees/paneler_";
public static String tileworkerTexture = "extratrees/tileworker_";
public static String incubatorTexture = "extratrees/incubator_";
public static String lumbermillTexture = "extratrees/sawmill_";
public static String pressTexture = "extratrees/press_";
public static String distilleryTexture = "extratrees/distillery_";
public static String breweryTexture = "extratrees/brewery_";
public static String infuserTexture = "extratrees/infuser_";
ExtraTreeTexture(final ResourceType base, final String texture) {
this.texture = texture;
@@ -32,15 +32,4 @@ public enum ExtraTreeTexture implements IBinnieTexture {
return Binnie.Resource.getPNG(ExtraTrees.instance, this.type, this.texture);
}
static {
ExtraTreeTexture.carpenterTexture = "extratrees/carpenter_";
ExtraTreeTexture.panelerTexture = "extratrees/paneler_";
ExtraTreeTexture.tileworkerTexture = "extratrees/tileworker_";
ExtraTreeTexture.incubatorTexture = "extratrees/incubator_";
ExtraTreeTexture.lumbermillTexture = "extratrees/sawmill_";
ExtraTreeTexture.pressTexture = "extratrees/press_";
ExtraTreeTexture.distilleryTexture = "extratrees/distillery_";
ExtraTreeTexture.breweryTexture = "extratrees/brewery_";
ExtraTreeTexture.infuserTexture = "extratrees/infuser_";
}
}
@@ -7,8 +7,8 @@ import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class MachineRendererKitchen {
static int level;
public static MachineRendererKitchen instance;
static int level = 0;
public static MachineRendererKitchen instance = new MachineRendererKitchen();;
BinnieResource texture;
public void renderMachine(final Machine machine, final BinnieResource texture, final double x, final double y, final double z, final float var8) {
@@ -85,8 +85,4 @@ public class MachineRendererKitchen {
// }
}
static {
MachineRendererKitchen.level = 0;
MachineRendererKitchen.instance = new MachineRendererKitchen();
}
}
@@ -32,13 +32,13 @@ import java.util.List;
import java.util.Map;
public class Brewery {
public static int[] slotRecipeGrains;
public static int slotRecipeInput;
public static int slotRecipeYeast;
public static int[] slotInventory;
public static int tankInput;
public static int tankOutput;
private static List<IBreweryRecipe> recipes;
public static int[] slotRecipeGrains = new int[]{0, 1, 2};
public static int slotRecipeInput = 3;
public static int slotRecipeYeast = 4;
public static int[] slotInventory = new int[]{5, 6, 7, 8, 9, 10, 11, 12, 13};
public static int tankInput = 0;
public static int tankOutput = 1;
private static List<IBreweryRecipe> recipes = new ArrayList<>();
public static boolean isValidGrain(final ItemStack itemstack) {
for (final IBreweryRecipe recipe : Brewery.recipes) {
@@ -125,16 +125,6 @@ public class Brewery {
Brewery.recipes.add(new BeerRecipe());
}
static {
Brewery.slotRecipeGrains = new int[]{0, 1, 2};
Brewery.slotRecipeInput = 3;
Brewery.slotRecipeYeast = 4;
Brewery.slotInventory = new int[]{5, 6, 7, 8, 9, 10, 11, 12, 13};
Brewery.tankInput = 0;
Brewery.tankOutput = 1;
Brewery.recipes = new ArrayList<>();
}
public static class PackageBrewery extends ExtraTreeMachine.PackageExtraTreeMachine implements IMachineInformation {
public PackageBrewery() {
super("brewery", ExtraTreeTexture.breweryTexture, true);
@@ -453,11 +443,11 @@ public class Brewery {
public static class BeerRecipe implements IBreweryRecipe {
Map<ItemStack, String> grainCrops;
List<FluidStack> outputs;
static String barley;
static String wheat;
static String rye;
static String corn;
static String roasted;
static String barley = "seedBarley";
static String wheat = "seedWheat";
static String rye = "seedRye";
static String corn = "seedCorn";
static String roasted = "seedRoasted";
String[] grains;
FluidStack water;
ItemStack hops;
@@ -570,14 +560,6 @@ public class Brewery {
public ItemStack[] getYeasts() {
return new ItemStack[]{ExtraTreeItems.Yeast.get(1), ExtraTreeItems.LagerYeast.get(1)};
}
static {
BeerRecipe.barley = "seedBarley";
BeerRecipe.wheat = "seedWheat";
BeerRecipe.rye = "seedRye";
BeerRecipe.corn = "seedCorn";
BeerRecipe.roasted = "seedRoasted";
}
}
private interface IBreweryRecipe {
@@ -23,15 +23,9 @@ import net.minecraftforge.fml.relauncher.Side;
import java.util.Map;
public abstract class Designer {
public static int beeswaxSlot;
public static int design1Slot;
public static int design2Slot;
static {
Designer.beeswaxSlot = 0;
Designer.design1Slot = 1;
Designer.design2Slot = 2;
}
public static int beeswaxSlot = 0;
public static int design1Slot = 1;
public static int design2Slot = 2;
public static class PackageWoodworker extends PackageCarpenter {
public PackageWoodworker() {
@@ -27,8 +27,8 @@ import java.util.List;
import java.util.Map;
public class Distillery {
public static int tankInput;
public static int tankOutput;
public static int tankInput = 0;
public static int tankOutput = 1;
static List<Map<Fluid, FluidStack>> recipes;
public static FluidStack getOutput(final FluidStack fluid, final int level) {
@@ -63,8 +63,6 @@ public class Distillery {
}
static {
Distillery.tankInput = 0;
Distillery.tankOutput = 1;
(Distillery.recipes = new ArrayList<>()).add(new HashMap<>());
Distillery.recipes.add(new HashMap<>());
Distillery.recipes.add(new HashMap<>());
@@ -22,9 +22,9 @@ import java.util.HashMap;
import java.util.Map;
public class Infuser {
public static int tankInput;
public static int tankOutput;
static Map<Fluid, FluidStack> recipes;
public static int tankInput = 0;
public static int tankOutput = 1;
static Map<Fluid, FluidStack> recipes = new HashMap<>();
public static FluidStack getOutput(final FluidStack fluid, final ItemStack stack) {
if (fluid == null) {
@@ -50,12 +50,6 @@ public class Infuser {
Infuser.recipes.put(input.getFluid(), output);
}
static {
Infuser.tankInput = 0;
Infuser.tankOutput = 1;
Infuser.recipes = new HashMap<>();
}
public static class PackageInfuser extends ExtraTreeMachine.PackageExtraTreeMachine implements IMachineInformation {
public PackageInfuser() {
super("infuser", ExtraTreeTexture.infuserTexture, true);
@@ -29,12 +29,12 @@ import net.minecraftforge.oredict.ShapelessOreRecipe;
import java.util.*;
public class Lumbermill {
public static int slotWood;
public static int slotPlanks;
public static int slotBark;
public static int slotSawdust;
public static int tankWater;
static Map<ItemStack, ItemStack> recipes;
public static int slotWood = 0;
public static int slotPlanks = 1;
public static int slotBark = 2;
public static int slotSawdust = 3;
public static int tankWater = 0;
static Map<ItemStack, ItemStack> recipes = new HashMap<>();
public static ItemStack getPlankProduct(final ItemStack item) {
ItemStack stack = null;
@@ -103,15 +103,6 @@ public class Lumbermill {
return list;
}
static {
Lumbermill.slotWood = 0;
Lumbermill.slotPlanks = 1;
Lumbermill.slotBark = 2;
Lumbermill.slotSawdust = 3;
Lumbermill.tankWater = 0;
Lumbermill.recipes = new HashMap<>();
}
public static class PackageLumbermill extends ExtraTreeMachine.PackageExtraTreeMachine implements IMachineInformation {
public PackageLumbermill() {
super("lumbermill", ExtraTreeTexture.lumbermillTexture, true);
@@ -8,7 +8,7 @@ import java.util.HashMap;
import java.util.Map;
public class MachineRendererForestry {
static Map<String, Object> instances;
static Map<String, Object> instances = new HashMap<>();
static Method renderMethod;
private static void loadMethod(final String file, final boolean waterTank, final boolean productTank) {
@@ -34,7 +34,4 @@ public class MachineRendererForestry {
}
}
static {
MachineRendererForestry.instances = new HashMap<>();
}
}
@@ -7,7 +7,7 @@ import binnie.extratrees.ExtraTrees;
import org.lwjgl.opengl.GL11;
public class MachineRendererNursery {
public static MachineRendererNursery instance;
public static MachineRendererNursery instance = new MachineRendererNursery();;
BinnieResource texture;
//private IModelCustom casinoMachine;
private ModelNursery model;
@@ -26,7 +26,4 @@ public class MachineRendererNursery {
GL11.glPopMatrix();
}
static {
MachineRendererNursery.instance = new MachineRendererNursery();
}
}
@@ -6,11 +6,7 @@ import binnie.extratrees.core.ExtraTreeTexture;
import net.minecraft.tileentity.TileEntity;
public class Nursery {
public static int slotCaterpillar;
static {
Nursery.slotCaterpillar = 0;
}
public static int slotCaterpillar = 0;
public static class PackageNursery extends ExtraTreeMachine.PackageExtraTreeMachine {
public PackageNursery() {
@@ -21,10 +21,10 @@ import java.util.HashMap;
import java.util.Map;
public class Press {
public static int slotFruit;
public static int slotCurrent;
public static int tankWater;
private static Map<ItemStack, FluidStack> pressRecipes;
public static int slotFruit = 0;
public static int slotCurrent = 1;
public static int tankWater = 0;
private static Map<ItemStack, FluidStack> pressRecipes = new HashMap<>();
public static boolean isInput(final ItemStack itemstack) {
return getOutput(itemstack) != null;
@@ -49,13 +49,6 @@ public class Press {
Press.pressRecipes.put(stack, fluid);
}
static {
Press.slotFruit = 0;
Press.slotCurrent = 1;
Press.tankWater = 0;
Press.pressRecipes = new HashMap<>();
}
public static class PackagePress extends ExtraTreeMachine.PackageExtraTreeMachine implements IMachineInformation {
public PackagePress() {
super("press", ExtraTreeTexture.pressTexture, true);