mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
More models
This commit is contained in:
1 parent
8e3d08dfd3
commit
fc7fa7492e
6 files changed
+59
-4
No files matched your search
@@ -148,6 +148,22 @@ public abstract class BlockBasic extends Block//TODO? implements IBlockCTM, ICus
|
||||
BlockStateBasic.BasicBlockType type = state.getValue(getProperty());
|
||||
return type.meta;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos)
|
||||
{
|
||||
TileEntity tile = worldIn.getTileEntity(pos);
|
||||
if(tile instanceof TileEntityBasicBlock && ((TileEntityBasicBlock)tile).facing != null)
|
||||
{
|
||||
state = state.withProperty(BlockStateBasic.facingProperty, ((TileEntityBasicBlock)tile).facing);
|
||||
}
|
||||
if(tile instanceof IActiveState)
|
||||
{
|
||||
state = state.withProperty(BlockStateBasic.activeProperty, ((IActiveState)tile).getActive());
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
/*
|
||||
@Override
|
||||
public IIcon getIcon(ItemStack stack, int side)
|
||||
@@ -809,7 +825,7 @@ public abstract class BlockBasic extends Block//TODO? implements IBlockCTM, ICus
|
||||
}
|
||||
else if(getBasicBlock() == BasicBlock.BASIC_BLOCK_2)
|
||||
{
|
||||
if(metadata == 5)
|
||||
if(metadata == 5 && tileEntity instanceof TileEntitySuperheatingElement)
|
||||
{
|
||||
TileEntitySuperheatingElement element = (TileEntitySuperheatingElement)tileEntity;
|
||||
|
||||
|
||||
Reference in new issue
Block a user