Removes the unneeded information about the current class in all blocks
Every Block had a call to its super, passing its own class. This can easily be simulated by calling `this.getClass()` in the super class. Also this was basically only used as using a name. In the future it might be advisable to not use such methods, since they are prone to refactoring.
This commit is contained in:
@@ -40,11 +40,8 @@ import appeng.tile.crafting.TileCraftingMonitorTile;
|
||||
|
||||
public class BlockCraftingMonitor extends BlockCraftingUnit
|
||||
{
|
||||
|
||||
public BlockCraftingMonitor()
|
||||
{
|
||||
super( BlockCraftingMonitor.class );
|
||||
|
||||
this.setTileEntity( TileCraftingMonitorTile.class );
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,6 @@ public class BlockCraftingStorage extends BlockCraftingUnit
|
||||
{
|
||||
public BlockCraftingStorage()
|
||||
{
|
||||
super( BlockCraftingStorage.class );
|
||||
|
||||
this.setTileEntity( TileCraftingStorageTile.class );
|
||||
}
|
||||
|
||||
|
||||
@@ -51,16 +51,10 @@ public class BlockCraftingUnit extends AEBaseBlock
|
||||
|
||||
public BlockCraftingUnit()
|
||||
{
|
||||
this( BlockCraftingUnit.class );
|
||||
|
||||
this.setTileEntity( TileCraftingTile.class );
|
||||
}
|
||||
|
||||
public BlockCraftingUnit( Class<? extends BlockCraftingUnit> childClass )
|
||||
{
|
||||
super( childClass, Material.iron );
|
||||
super( Material.iron );
|
||||
|
||||
this.hasSubtypes = true;
|
||||
this.setTileEntity( TileCraftingTile.class );
|
||||
this.setFeature( EnumSet.of( AEFeature.CraftingCPU ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,8 @@ public class BlockMolecularAssembler extends AEBaseBlock
|
||||
|
||||
public BlockMolecularAssembler()
|
||||
{
|
||||
super( BlockMolecularAssembler.class, Material.iron );
|
||||
super( Material.iron );
|
||||
|
||||
this.setTileEntity( TileMolecularAssembler.class );
|
||||
this.isOpaque = false;
|
||||
this.lightOpacity = 1;
|
||||
|
||||
Reference in New Issue
Block a user