use of com.builtbroken.mc.api.tile.access.IRotation in project Engine by VoltzEngine-Project.
the class MultiBlockListener method getLayoutOfMultiBlock.
@Override
public HashMap<IPos3D, String> getLayoutOfMultiBlock() {
if (doRotation) {
TileEntity tileEntity = getTileEntity();
ForgeDirection dir = null;
if (tileEntity instanceof IRotation) {
dir = ((IRotation) tileEntity).getDirection();
} else if (tileEntity instanceof ITileNodeHost && ((ITileNodeHost) tileEntity).getTileNode() instanceof IRotation) {
dir = ((IRotation) ((ITileNodeHost) tileEntity).getTileNode()).getDirection();
}
return getLayoutOfMultiBlock(dir);
}
return MultiBlockLayoutHandler.get(layoutKey);
}
Aggregations