172173174175176177178179180181182
// send orientation based directionality to the node. if ( gp instanceof IOrientable ) { IOrientable ori = (IOrientable) gp; if ( ori.canBeRotated() ) ori.setOrientation( ori.getForward(), ori.getUp() ); } getNode(); }
149150151152153154155156157158159
ori = tile; if ( tile == null ) return true; if ( ori.canBeRotated() && !blockType.hasCustomRotation() ) { if ( ori.getForward() == null || ori.getUp() == null || // null tile.getForward() == ForgeDirection.UNKNOWN || ori.getUp() == ForgeDirection.UNKNOWN ) ori.setOrientation( forward, up ); }
332333334335336337338339340341342
else if ( this instanceof IOrientableBlock ) { rotatable = ((IOrientableBlock) this).getOrientable( w, x, y, z ); } if ( rotatable != null && rotatable.canBeRotated() ) { if ( hasCustomRotation() ) { customRotateBlock( rotatable, axis ); return true;
416417418419420421422423424425426
else if ( this instanceof IOrientableBlock ) { ori = ((IOrientableBlock) this).getOrientable( w, x, y, z ); } if ( ori != null && ori.canBeRotated() ) { return mapRotation( ori, ForgeDirection.getOrientation( s ) ).ordinal(); } return s;
430431432433434435436437438439440
final public ForgeDirection[] getValidRotations(World w, int x, int y, int z) { if ( hasBlockTileEntity() ) { AEBaseTile obj = getTileEntity( w, x, y, z ); if ( obj != null && obj.canBeRotated() ) { return ForgeDirection.VALID_DIRECTIONS; } }