Examples of TileInterface


Examples of appeng.tile.misc.TileInterface

  }

  @Override
  public boolean renderInWorld(AEBaseBlock block, IBlockAccess world, int x, int y, int z, RenderBlocks renderer)
  {
    TileInterface ti = block.getTileEntity( world, x, y, z );

    BlockRenderInfo info = block.getRendererInstance();

    if ( ti.getForward() != ForgeDirection.UNKNOWN )
    {
      IIcon side = ExtraBlockTextures.BlockInterfaceAlternateArrow.getIcon();
      info.setTemporaryRenderIcons( ExtraBlockTextures.BlockInterfaceAlternate.getIcon(), block.getIcon( 0, 0 ), side, side, side, side );
    }
View Full Code Here

Examples of appeng.tile.misc.TileInterface

  public boolean onActivated(World w, int x, int y, int z, EntityPlayer p, int side, float hitX, float hitY, float hitZ)
  {
    if ( p.isSneaking() )
      return false;

    TileInterface tg = getTileEntity( w, x, y, z );
    if ( tg != null )
    {
      if ( Platform.isServer() )
        Platform.openGUI( p, tg, ForgeDirection.getOrientation( side ), GuiBridge.GUI_INTERFACE );
      return true;
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.