use of se.gory_moon.horsepower.blocks.BlockFiller in project HorsePower by GoryMoon.
the class TileEntityFiller method getFilledPos.
public BlockPos getFilledPos() {
IBlockState state = getWorld().getBlockState(getPos());
if (!(state.getBlock() instanceof BlockFiller))
return getPos();
EnumFacing facing = state.getValue(BlockDirectional.FACING);
IBlockState state1 = getWorld().getBlockState(pos.offset(facing));
if (!(state1.getBlock() instanceof BlockHPBase))
return getPos();
return pos.offset(facing);
}
Aggregations