Examples of canBeRotated()


Examples of appeng.api.util.IOrientable.canBeRotated()

    // 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();
  }
View Full Code Here

Examples of appeng.api.util.IOrientable.canBeRotated()

        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 );
        }
View Full Code Here

Examples of appeng.api.util.IOrientable.canBeRotated()

    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;
View Full Code Here

Examples of appeng.api.util.IOrientable.canBeRotated()

    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;
View Full Code Here

Examples of appeng.tile.AEBaseTile.canBeRotated()

  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;
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.