mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-22 05:02:34 +00:00
Minor cleanups (#50)
* Finalize, minor alloc reduction Also enable Jabel and generic injection * Update dependencies.gradle * Clean up Machine a bit * spotless more enhanced instanceof * Update ModuleMachine.java * More clen * WARN: Removed exception catching * Many, many tiny patches + birthday fix * Spotless * Spotless again * Fix getLow and clamp tolerance value * Revert event -> ignored on unused event parameters * Rename instanceof variables * Update Machine.java * Use StringBuilder * Cache getStack() * Oops, Jabel can't handle that * Spotless * Spotless again My IDE was fighting with it * Remove unused elements + scream test success
This commit is contained in:
1 parent
6b4f3eb1c7
commit
f0f14bb278
325 files changed
+1205
-1868
No files matched your search
@@ -18,17 +18,11 @@ public enum BinnieCoreGUI implements IBinnieGUID {
|
||||
Genesis;
|
||||
|
||||
public Window getWindow(EntityPlayer player, IInventory object, Side side) throws Exception {
|
||||
switch (this) {
|
||||
case Compartment:
|
||||
return new WindowCompartment(player, object, side);
|
||||
|
||||
case FieldKit:
|
||||
return new WindowFieldKit(player, null, side);
|
||||
|
||||
case Genesis:
|
||||
return new WindowGenesis(player, null, side);
|
||||
}
|
||||
return null;
|
||||
return switch (this) {
|
||||
case Compartment -> new WindowCompartment(player, object, side);
|
||||
case FieldKit -> new WindowFieldKit(player, null, side);
|
||||
case Genesis -> new WindowGenesis(player, null, side);
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -11,7 +11,7 @@ import cpw.mods.fml.relauncher.Side;
|
||||
|
||||
public class BinnieGUIHandler implements IGuiHandler {
|
||||
|
||||
private AbstractMod mod;
|
||||
private final AbstractMod mod;
|
||||
|
||||
public BinnieGUIHandler(AbstractMod mod) {
|
||||
this.mod = mod;
|
||||
|
||||
Reference in new issue
Block a user