Gas Tank and Fluid Tank state management & renders, along with tier colors. I'm getting the hang of this!

This commit is contained in:
aidancbrady committed 2016-05-05 15:25:09 -04:00
1 parent 4ecde79334
commit b3b714cd36
28 files changed
+188 -162

No files matched your search

@@ -33,14 +33,13 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumFacing.AxisDirection;
import net.minecraft.util.MathHelper;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import buildcraft.api.tools.IToolWrench;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import buildcraft.api.tools.IToolWrench;
/**
* Block class for handling multiple energy cube block IDs.
@@ -84,9 +83,11 @@ public class BlockEnergyCube extends BlockContainer
public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos)
{
TileEntity tile = worldIn.getTileEntity(pos);
if(tile instanceof TileEntityEnergyCube)
{
TileEntityEnergyCube cube = (TileEntityEnergyCube)tile;
if(cube.facing != null)
{
state = state.withProperty(BlockStateFacing.facingProperty, cube.facing);
@@ -101,15 +102,6 @@ public class BlockEnergyCube extends BlockContainer
return state;
}
/*
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister register)
{
blockIcon = register.registerIcon(BlockBasic.ICON_BASE);
}
*/
@Override
public void onNeighborBlockChange(World world, BlockPos pos, IBlockState state, Block neighborBlock)
{