Fixed some messed up refactoring

This commit is contained in:
yueh
2015-12-24 02:05:39 +01:00
parent c9e8a6e939
commit 15664b2822
7 changed files with 26 additions and 6 deletions
+16 -1
View File
@@ -446,7 +446,7 @@ public abstract class AEBaseBlock extends Block implements IAEFeature
@Override
public boolean hasComparatorInputOverride()
{
return this.isInventory;
return this.isInventory();
}
@Override
@@ -711,4 +711,19 @@ public abstract class AEBaseBlock extends Block implements IAEFeature
return featureSubName;
}
public boolean isInventory()
{
return isInventory;
}
public void setInventory( boolean isInventory )
{
this.isInventory = isInventory;
}
public void setHasSubtypes( boolean hasSubtypes )
{
this.hasSubtypes = hasSubtypes;
}
}
@@ -50,7 +50,7 @@ public class AEBaseItemBlock extends ItemBlock
{
super( id );
this.blockType = (AEBaseBlock) id;
this.hasSubtypes = this.blockType.hasSubtypes;
this.hasSubtypes = this.blockType.hasSubtypes();
}
@Override
@@ -91,7 +91,7 @@ public abstract class AEBaseTileBlock extends AEBaseBlock implements IAEFeature,
protected void setTileEntity( final Class<? extends TileEntity> c )
{
this.tileEntityType = c;
this.isInventory = IInventory.class.isAssignableFrom( c );
this.setInventory( IInventory.class.isAssignableFrom( c ) );
this.setTileProvider( this.hasBlockTileEntity() );
}
@@ -60,7 +60,7 @@ public class BlockSkyChest extends AEBaseTileBlock implements ICustomCollision
this.setTileEntity( TileSkyChest.class );
this.setOpaque( this.setFullSize( false ) );
this.lightOpacity = 0;
this.hasSubtypes = true;
this.setHasSubtypes( true );
this.setHardness( 50 );
this.blockResistance = 150.0f;
this.type = type;