Package xk.xact.core.tileentities

Examples of xk.xact.core.tileentities.TileWorkbench


  }


  @Override
  public TileEntity createNewTileEntity(World world) {
    return new TileWorkbench();
  }
View Full Code Here


  @Override
  public void onBlockHarvested(World world, int x, int y, int z, int metadata, EntityPlayer player) {
    if( player.capabilities.isCreativeMode )
      return;
    TileWorkbench workbench = (TileWorkbench) world.getBlockTileEntity( x, y, z );
    if( workbench != null ) {
      ItemStack[] inventoryContents = workbench.craftingGrid.getContents();
      for( ItemStack current : inventoryContents ) {
        if( current == null )
          continue;
View Full Code Here

      return machine.getContainerFor( player );
    }

    if( ID == 2 ) {
      TileWorkbench workbench = (TileWorkbench) world.getBlockTileEntity( x, y, z );
      if( workbench == null )
        return null;

      return new ContainerVanillaWorkbench( workbench, player );
    }
View Full Code Here

      ChipCase chipCase = new ChipCase( player.inventory.getCurrentItem() );
      return new GuiCase( new ContainerCase( chipCase, player ) );
    }

    if( ID == 2 ) { // Vanilla Workbench
      TileWorkbench workbench = (TileWorkbench) world.getBlockTileEntity( x, y, z );
      if( workbench == null )
        return null;

      return new GuiVanillaWorkbench( new ContainerVanillaWorkbench( workbench, player ) );
    }
View Full Code Here

TOP

Related Classes of xk.xact.core.tileentities.TileWorkbench

Copyright © 2018 www.massapicom. 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.