Examples of TileMachine


Examples of xk.xact.core.tileentities.TileMachine

  @Override
  public void onBlockHarvested(World world, int x, int y, int z, int metadata, EntityPlayer player) {
    if( player.capabilities.isCreativeMode )
      return;

    TileMachine entity = (TileMachine) world.getBlockTileEntity( x, y, z );
    if( entity != null ) {
      for( ItemStack stack : entity.getDropItems() ) {
        if( stack != null )
          Utils.dropItemAsEntity( world, x, y, z, stack );
      }
    }
  }
View Full Code Here

Examples of xk.xact.core.tileentities.TileMachine

    // 3: craft pad
    // 4: <none> (client only)
    // 5: recipe

    if( ID == 0 ) { // Machines
      TileMachine machine = (TileMachine) world.getBlockTileEntity( x, y, z );
      if( machine == null )
        return null;

      return machine.getContainerFor( player );
    }

    if( ID == 2 ) {
      TileWorkbench workbench = (TileWorkbench) world.getBlockTileEntity( x, y, z );
      if( workbench == null )
View Full Code Here

Examples of xk.xact.core.tileentities.TileMachine

    // 3: craft pad
    // 4: plan (client only)
    // 5: recipe

    if( ID == 0 ) { // Machines
      TileMachine machine = (TileMachine) world.getBlockTileEntity( x, y, z );
      if( machine == null )
        return null;

      return machine.getGuiContainerFor( player );
    }

    if( ID == 1 ) { // Chip Case
      ChipCase chipCase = new ChipCase( player.inventory.getCurrentItem() );
      return new GuiCase( new ContainerCase( chipCase, player ) );
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.