mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 11:59:11 +00:00
Improve code readability in binnie.genetics package
Drop unused (empty) method MachinePackage#register() from all classes
This commit is contained in:
1 parent
856f08b752
commit
730043ba9c
112 files changed
+4354
-4697
No files matched your search
@@ -43,9 +43,6 @@ public class MachineGroup {
|
||||
Binnie.Machine.registerMachineGroup(this);
|
||||
block = new BlockMachine(this, blockName);
|
||||
GameRegistry.registerBlock(block, ItemMachine.class, blockName);
|
||||
for (MachinePackage pack2 : getPackages()) {
|
||||
pack2.register();
|
||||
}
|
||||
}
|
||||
|
||||
private void addPackage(MachinePackage pack) {
|
||||
|
||||
@@ -26,8 +26,6 @@ public abstract class MachinePackage {
|
||||
|
||||
public abstract TileEntity createTileEntity();
|
||||
|
||||
public abstract void register();
|
||||
|
||||
public String getDisplayName() {
|
||||
return Binnie.Language.localise(group.getMod(), "machine." + group.getShortUID() + "." + getUID());
|
||||
}
|
||||
|
||||
@@ -52,10 +52,6 @@ enum Compartment implements IMachineType {
|
||||
return new TileEntityMachine(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderMachine(Machine machine, double x, double y, double z, float partialTick, RenderBlocks renderer) {
|
||||
MachineRendererCompartment.instance.renderMachine(machine, 0xffffff, renderTexture, x, y, z, partialTick);
|
||||
|
||||
@@ -22,10 +22,6 @@ class StandardCompartment {
|
||||
public TileEntity createTileEntity() {
|
||||
return new TileEntityMachine(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register() {
|
||||
}
|
||||
}
|
||||
|
||||
public static class PackageCompartmentCopper extends Compartment.PackageCompartment {
|
||||
@@ -43,11 +39,6 @@ class StandardCompartment {
|
||||
public TileEntity createTileEntity() {
|
||||
return new TileEntityMachine(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register() {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
public static class PackageCompartmentBronze extends Compartment.PackageCompartment {
|
||||
@@ -65,11 +56,6 @@ class StandardCompartment {
|
||||
public TileEntity createTileEntity() {
|
||||
return new TileEntityMachine(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register() {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
public static class PackageCompartmentIron extends Compartment.PackageCompartment {
|
||||
@@ -87,11 +73,6 @@ class StandardCompartment {
|
||||
public TileEntity createTileEntity() {
|
||||
return new TileEntityMachine(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register() {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
public static class PackageCompartmentGold extends Compartment.PackageCompartment {
|
||||
@@ -109,11 +90,6 @@ class StandardCompartment {
|
||||
public TileEntity createTileEntity() {
|
||||
return new TileEntityMachine(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register() {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
public static class PackageCompartmentDiamond extends Compartment.PackageCompartment {
|
||||
@@ -131,10 +107,5 @@ class StandardCompartment {
|
||||
public TileEntity createTileEntity() {
|
||||
return new TileEntityMachine(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register() {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user