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

@@ -9,8 +9,8 @@ import binnie.craftgui.resource.minecraft.CraftGUITextureSheet;
import binnie.craftgui.resource.minecraft.StandardTexture;
public class ControlColourMixSymbol extends Control implements ITooltip {
static Texture MutationPlus;
static Texture MutationArrow;
static Texture MutationPlus = new StandardTexture(2, 94, 16, 16, CraftGUITextureSheet.Controls2);
static Texture MutationArrow = new StandardTexture(20, 94, 32, 16, CraftGUITextureSheet.Controls2);
IColourMix value;
int type;
@@ -44,8 +44,4 @@ public class ControlColourMixSymbol extends Control implements ITooltip {
}
}
static {
ControlColourMixSymbol.MutationPlus = new StandardTexture(2, 94, 16, 16, CraftGUITextureSheet.Controls2);
ControlColourMixSymbol.MutationArrow = new StandardTexture(20, 94, 32, 16, CraftGUITextureSheet.Controls2);
}
}
@@ -1,7 +1,7 @@
package binnie.craftgui.core.geometry;
public class IBorder {
public static final IBorder ZERO;
public static final IBorder ZERO = new IBorder(0.0f);
float t;
float b;
float l;
@@ -99,7 +99,4 @@ public class IBorder {
return this.t() + "-" + this.r() + "-" + this.b() + "-" + this.l();
}
static {
ZERO = new IBorder(0.0f);
}
}
@@ -1,7 +1,7 @@
package binnie.craftgui.core.geometry;
public class IPoint {
public static final IPoint ZERO;
public static final IPoint ZERO = new IPoint(0.0f, 0.0f);
float x;
float y;
@@ -68,7 +68,4 @@ public class IPoint {
return this.x() == other.x() && this.y() == other.y();
}
static {
ZERO = new IPoint(0.0f, 0.0f);
}
}
@@ -20,8 +20,8 @@ import org.lwjgl.opengl.GL11;
import java.util.Collections;
public class ControlBreweryProgress extends ControlProgressBase {
static Texture Brewery;
static Texture BreweryOverlay;
static Texture Brewery = new StandardTexture(0, 69, 34, 39, ExtraTreeTexture.Gui);
static Texture BreweryOverlay = new StandardTexture(34, 69, 34, 39, ExtraTreeTexture.Gui);
@Override
public void onRenderBackground() {
@@ -82,8 +82,4 @@ public class ControlBreweryProgress extends ControlProgressBase {
// GL11.glDisable(3042);
}
static {
ControlBreweryProgress.Brewery = new StandardTexture(0, 69, 34, 39, ExtraTreeTexture.Gui);
ControlBreweryProgress.BreweryOverlay = new StandardTexture(34, 69, 34, 39, ExtraTreeTexture.Gui);
}
}
@@ -18,10 +18,10 @@ import net.minecraftforge.fluids.FluidStack;
import org.lwjgl.opengl.GL11;
public class ControlDistilleryProgress extends ControlProgressBase {
static Texture DistilleryBase;
static Texture DistilleryOverlay;
static Texture LiquidFlow;
static Texture Output;
static Texture DistilleryBase = new StandardTexture(43, 0, 58, 66, ExtraTreeTexture.Gui);
static Texture DistilleryOverlay = new StandardTexture(139, 0, 18, 66, ExtraTreeTexture.Gui);
static Texture LiquidFlow = new StandardTexture(101, 0, 38, 66, ExtraTreeTexture.Gui);
static Texture Output = new StandardTexture(68, 66, 17, 7, ExtraTreeTexture.Gui);
@Override
public void onRenderBackground() {
@@ -85,10 +85,4 @@ public class ControlDistilleryProgress extends ControlProgressBase {
GL11.glDisable(3042);
}
static {
ControlDistilleryProgress.DistilleryBase = new StandardTexture(43, 0, 58, 66, ExtraTreeTexture.Gui);
ControlDistilleryProgress.DistilleryOverlay = new StandardTexture(139, 0, 18, 66, ExtraTreeTexture.Gui);
ControlDistilleryProgress.LiquidFlow = new StandardTexture(101, 0, 38, 66, ExtraTreeTexture.Gui);
ControlDistilleryProgress.Output = new StandardTexture(68, 66, 17, 7, ExtraTreeTexture.Gui);
}
}
@@ -18,8 +18,8 @@ import net.minecraftforge.fluids.Fluid;
import org.lwjgl.opengl.GL11;
public class ControlFruitPressProgress extends ControlProgressBase {
static Texture PressTexture;
static Texture PressSlot;
static Texture PressTexture = new StandardTexture(6, 0, 24, 52, ExtraTreeTexture.Gui);
static Texture PressSlot = new StandardTexture(9, 52, 34, 17, ExtraTreeTexture.Gui);
@Override
public void onRenderBackground() {
@@ -70,8 +70,4 @@ public class ControlFruitPressProgress extends ControlProgressBase {
});
}
static {
ControlFruitPressProgress.PressTexture = new StandardTexture(6, 0, 24, 52, ExtraTreeTexture.Gui);
ControlFruitPressProgress.PressSlot = new StandardTexture(9, 52, 34, 17, ExtraTreeTexture.Gui);
}
}
@@ -20,8 +20,8 @@ import org.lwjgl.opengl.GL11;
public class ControlLumbermillProgress extends ControlProgressBase {
float oldProgress;
float animation;
static Texture Saw;
static Texture Saw2;
static Texture Saw = new StandardTexture(0, 0, 6, 32, ExtraTreeTexture.Gui);
static Texture Saw2 = new StandardTexture(2, 0, 4, 32, ExtraTreeTexture.Gui);
@Override
public void onUpdateClient() {
@@ -85,8 +85,4 @@ public class ControlLumbermillProgress extends ControlProgressBase {
new Panel(this, 0.0f, 0.0f, 66.0f, 18.0f, MinecraftGUI.PanelType.Black);
}
static {
ControlLumbermillProgress.Saw = new StandardTexture(0, 0, 6, 32, ExtraTreeTexture.Gui);
ControlLumbermillProgress.Saw2 = new StandardTexture(2, 0, 4, 32, ExtraTreeTexture.Gui);
}
}
@@ -14,12 +14,12 @@ import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
public class WindowAcclimatiser extends WindowMachine {
static Texture ProgressBase;
static Texture Progress;
public static final int[] slotReserve;
static Texture ProgressBase = new StandardTexture(64, 0, 130, 21, ExtraBeeTexture.GUIProgress.getTexture());
static Texture Progress = new StandardTexture(64, 21, 130, 21, ExtraBeeTexture.GUIProgress.getTexture());
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;
public static final int[] slotAcclimatiser = new int[]{5, 6, 7};
public static final int[] slotDone = new int[]{8, 9, 10, 11};
public static Window create(final EntityPlayer player, final IInventory inventory, final Side side) {
return new WindowAcclimatiser(player, inventory, side);
@@ -60,11 +60,4 @@ public class WindowAcclimatiser extends WindowMachine {
return "Acclimatiser";
}
static {
WindowAcclimatiser.ProgressBase = new StandardTexture(64, 0, 130, 21, ExtraBeeTexture.GUIProgress.getTexture());
WindowAcclimatiser.Progress = new StandardTexture(64, 21, 130, 21, ExtraBeeTexture.GUIProgress.getTexture());
slotReserve = new int[]{0, 1, 2, 3};
slotAcclimatiser = new int[]{5, 6, 7};
slotDone = new int[]{8, 9, 10, 11};
}
}
@@ -18,8 +18,8 @@ import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
public class WindowAnalyser extends WindowMachine {
static Texture ProgressBase;
static Texture Progress;
static Texture ProgressBase = new StandardTexture(0, 218, 142, 17, ExtraBeeTexture.GUIProgress.getTexture());
static Texture Progress = new StandardTexture(0, 201, 142, 17, ExtraBeeTexture.GUIProgress.getTexture());
public static Window create(final EntityPlayer player, final IInventory inventory, final Side side) {
return new WindowAnalyser(player, inventory, side);
@@ -72,8 +72,4 @@ public class WindowAnalyser extends WindowMachine {
return "Analyser";
}
static {
WindowAnalyser.ProgressBase = new StandardTexture(0, 218, 142, 17, ExtraBeeTexture.GUIProgress.getTexture());
WindowAnalyser.Progress = new StandardTexture(0, 201, 142, 17, ExtraBeeTexture.GUIProgress.getTexture());
}
}
@@ -15,8 +15,8 @@ import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
public class WindowGenepool extends WindowMachine {
static Texture ProgressBase;
static Texture Progress;
static Texture ProgressBase = new StandardTexture(64, 0, 130, 21, ExtraBeeTexture.GUIProgress.getTexture());;
static Texture Progress = new StandardTexture(64, 21, 130, 21, ExtraBeeTexture.GUIProgress.getTexture());;
public static Window create(final EntityPlayer player, final IInventory inventory, final Side side) {
return new WindowGenepool(player, inventory, side);
@@ -65,8 +65,4 @@ public class WindowGenepool extends WindowMachine {
return "Genepool";
}
static {
WindowGenepool.ProgressBase = new StandardTexture(64, 0, 130, 21, ExtraBeeTexture.GUIProgress.getTexture());
WindowGenepool.Progress = new StandardTexture(64, 21, 130, 21, ExtraBeeTexture.GUIProgress.getTexture());
}
}
@@ -15,8 +15,8 @@ import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
public class WindowIncubator extends WindowMachine {
static Texture ProgressBase;
static Texture Progress;
static Texture ProgressBase = new StandardTexture(0, 91, 38, 32, GeneticsTexture.GUIProcess);
static Texture Progress = new StandardTexture(38, 91, 38, 32, GeneticsTexture.GUIProcess);
public static Window create(final EntityPlayer player, final IInventory inventory, final Side side) {
return new WindowIncubator(player, inventory, side);
@@ -68,8 +68,4 @@ public class WindowIncubator extends WindowMachine {
return "Incubator";
}
static {
WindowIncubator.ProgressBase = new StandardTexture(0, 91, 38, 32, GeneticsTexture.GUIProcess);
WindowIncubator.Progress = new StandardTexture(38, 91, 38, 32, GeneticsTexture.GUIProcess);
}
}
@@ -17,8 +17,8 @@ import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
public class WindowInoculator extends WindowMachine {
static Texture ProgressBase;
static Texture Progress;
static Texture ProgressBase = new StandardTexture(0, 72, 142, 72, GeneticsTexture.GUIProcess2.getTexture());
static Texture Progress = new StandardTexture(0, 0, 142, 72, GeneticsTexture.GUIProcess2.getTexture());
public static Window create(final EntityPlayer player, final IInventory inventory, final Side side) {
return new WindowInoculator(player, inventory, side);
@@ -63,8 +63,4 @@ public class WindowInoculator extends WindowMachine {
return "Inoculator";
}
static {
WindowInoculator.ProgressBase = new StandardTexture(0, 72, 142, 72, GeneticsTexture.GUIProcess2.getTexture());
WindowInoculator.Progress = new StandardTexture(0, 0, 142, 72, GeneticsTexture.GUIProcess2.getTexture());
}
}
@@ -15,8 +15,8 @@ import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
public class WindowIsolator extends WindowMachine {
static Texture ProgressBase;
static Texture Progress;
static Texture ProgressBase = new StandardTexture(0, 218, 142, 17, ExtraBeeTexture.GUIProgress.getTexture());
static Texture Progress = new StandardTexture(0, 201, 142, 17, ExtraBeeTexture.GUIProgress.getTexture());
public static Window create(final EntityPlayer player, final IInventory inventory, final Side side) {
return new WindowIsolator(player, inventory, side);
@@ -73,8 +73,4 @@ public class WindowIsolator extends WindowMachine {
return "Isolator";
}
static {
WindowIsolator.ProgressBase = new StandardTexture(0, 218, 142, 17, ExtraBeeTexture.GUIProgress.getTexture());
WindowIsolator.Progress = new StandardTexture(0, 201, 142, 17, ExtraBeeTexture.GUIProgress.getTexture());
}
}
@@ -15,8 +15,8 @@ import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
public class WindowPolymeriser extends WindowMachine {
static Texture ProgressBase;
static Texture Progress;
static Texture ProgressBase = new StandardTexture(76, 170, 160, 79, GeneticsTexture.GUIProcess.getTexture());
static Texture Progress = new StandardTexture(76, 91, 160, 79, GeneticsTexture.GUIProcess.getTexture());
public static Window create(final EntityPlayer player, final IInventory inventory, final Side side) {
return new WindowPolymeriser(player, inventory, side);
@@ -64,8 +64,4 @@ public class WindowPolymeriser extends WindowMachine {
return "Polymeriser";
}
static {
WindowPolymeriser.ProgressBase = new StandardTexture(76, 170, 160, 79, GeneticsTexture.GUIProcess.getTexture());
WindowPolymeriser.Progress = new StandardTexture(76, 91, 160, 79, GeneticsTexture.GUIProcess.getTexture());
}
}
@@ -20,8 +20,8 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.fml.relauncher.Side;
public class WindowSequencer extends WindowMachine {
static Texture ProgressBase;
static Texture Progress;
static Texture ProgressBase = new StandardTexture(64, 114, 98, 9, ExtraBeeTexture.GUIProgress.getTexture());
static Texture Progress = new StandardTexture(64, 123, 98, 9, ExtraBeeTexture.GUIProgress.getTexture());
ControlText slotText;
public static Window create(final EntityPlayer player, final IInventory inventory, final Side side) {
@@ -79,8 +79,4 @@ public class WindowSequencer extends WindowMachine {
return "Sequencer";
}
static {
WindowSequencer.ProgressBase = new StandardTexture(64, 114, 98, 9, ExtraBeeTexture.GUIProgress.getTexture());
WindowSequencer.Progress = new StandardTexture(64, 123, 98, 9, ExtraBeeTexture.GUIProgress.getTexture());
}
}
@@ -18,8 +18,8 @@ import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
public class WindowSplicer extends WindowMachine {
static Texture ProgressBase;
static Texture Progress;
static Texture ProgressBase = new StandardTexture(0, 72, 142, 72, GeneticsTexture.GUIProcess2.getTexture());
static Texture Progress = new StandardTexture(0, 0, 142, 72, GeneticsTexture.GUIProcess2.getTexture());
public static Window create(final EntityPlayer player, final IInventory inventory, final Side side) {
return new WindowSplicer(player, inventory, side);
@@ -62,8 +62,4 @@ public class WindowSplicer extends WindowMachine {
return "Inoculator";
}
static {
WindowSplicer.ProgressBase = new StandardTexture(0, 72, 142, 72, GeneticsTexture.GUIProcess2.getTexture());
WindowSplicer.Progress = new StandardTexture(0, 0, 142, 72, GeneticsTexture.GUIProcess2.getTexture());
}
}
@@ -24,7 +24,7 @@ import java.util.ArrayList;
import java.util.List;
public class ControlLiquidTank extends Control implements ITooltip {
public static List<Integer> tankError;
public static List<Integer> tankError = new ArrayList<>();
private int tankID;
private boolean horizontal;
@@ -164,7 +164,4 @@ public class ControlLiquidTank extends Control implements ITooltip {
return (tank != null) ? tank.getTankSlot(this.tankID) : null;
}
static {
ControlLiquidTank.tankError = new ArrayList<>();
}
}
@@ -28,8 +28,8 @@ import java.util.List;
import java.util.Map;
public class ControlSlot extends ControlSlotBase {
public static Map<EnumHighlighting, List<Integer>> highlighting;
public static boolean shiftClickActive;
public static Map<EnumHighlighting, List<Integer>> highlighting = new HashMap<>();
public static boolean shiftClickActive = false;
public Slot slot;
public ControlSlot(final IWidget parent, final float x, final float y) {
@@ -194,8 +194,6 @@ public class ControlSlot extends ControlSlotBase {
}
static {
ControlSlot.highlighting = new HashMap<>();
ControlSlot.shiftClickActive = false;
for (final EnumHighlighting h : EnumHighlighting.values()) {
ControlSlot.highlighting.put(h, new ArrayList<>());
}
@@ -12,7 +12,7 @@ import binnie.craftgui.resource.minecraft.CraftGUITextureSheet;
import binnie.craftgui.resource.minecraft.StandardTexture;
class ControlBreedingProgress extends Control {
private static Texture Progress;
private static Texture Progress = new StandardTexture(80, 22, 4, 4, CraftGUITextureSheet.Controls2);
private float percentage;
private int colour;
@@ -30,8 +30,4 @@ class ControlBreedingProgress extends Control {
CraftGUI.Render.colour(this.colour);
CraftGUI.Render.texture(ControlBreedingProgress.Progress, area);
}
static {
ControlBreedingProgress.Progress = new StandardTexture(80, 22, 4, 4, CraftGUITextureSheet.Controls2);
}
}
@@ -12,8 +12,8 @@ import forestry.api.genetics.IAllele;
import forestry.api.genetics.IMutation;
class ControlMutationSymbol extends Control implements ITooltip {
private static Texture MutationPlus;
private static Texture MutationArrow;
private static Texture MutationPlus = new StandardTexture(2, 94, 16, 16, CraftGUITextureSheet.Controls2);
private static Texture MutationArrow = new StandardTexture(20, 94, 32, 16, CraftGUITextureSheet.Controls2);
private IMutation value;
private boolean discovered;
private int type;
@@ -62,9 +62,4 @@ class ControlMutationSymbol extends Control implements ITooltip {
}
}
}
static {
ControlMutationSymbol.MutationPlus = new StandardTexture(2, 94, 16, 16, CraftGUITextureSheet.Controls2);
ControlMutationSymbol.MutationArrow = new StandardTexture(20, 94, 32, 16, CraftGUITextureSheet.Controls2);
}
}
@@ -3,7 +3,7 @@ package binnie.craftgui.resource;
import binnie.craftgui.core.CraftGUI;
public class StyleSheetManager {
static IStyleSheet defaultSS;
static IStyleSheet defaultSS = new DefaultStyleSheet();
public static Texture getTexture(final Object key) {
return StyleSheetManager.defaultSS.getTexture(key);
@@ -13,10 +13,6 @@ public class StyleSheetManager {
return StyleSheetManager.defaultSS;
}
static {
StyleSheetManager.defaultSS = new DefaultStyleSheet();
}
private static class DefaultStyleSheet implements IStyleSheet {
@Override
public Texture getTexture(final Object key) {
@@ -6,7 +6,7 @@ import binnie.craftgui.core.geometry.IBorder;
import binnie.craftgui.core.geometry.Position;
public class Texture {
public static final Texture NULL;
public static final Texture NULL = null;
IArea area;
IBorder padding;
IBorder border;
@@ -108,8 +108,4 @@ public class Texture {
}
return out + "]";
}
static {
NULL = null;
}
}