Examples of TileEntityBackpack


Examples of net.mcft.copy.betterstorage.tile.entity.TileEntityBackpack

    blockIcon = iconRegister.registerIcon("obsidian");
  }
 
  @Override
  public TileEntity createTileEntity(World world, int metadata) {
    return new TileEntityBackpack();
  }
View Full Code Here

Examples of net.mcft.copy.betterstorage.tile.entity.TileEntityBackpack

    return super.removedByPlayer(world, player, x, y, z);
  }
 
  @Override
  public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
    TileEntityBackpack backpack = WorldUtils.get(world, x, y, z, TileEntityBackpack.class);
    if (!world.isRemote && (backpack != null) && !backpack.equipped)
      for (int i = 0; i < 64; i++)
        if (teleportRandomly(world, x, y, z, (i > 48), backpack.stack))
          break;
    world.removeTileEntity(x, y, z);
View Full Code Here

Examples of net.mcft.copy.betterstorage.tile.entity.TileEntityBackpack

                          "mob.endermen.portal", 1.0F, 1.0F);
    world.playSoundEffect(x + 0.5, y + 0.5, z + 0.5,
                          "mob.endermen.portal", 1.0F, 1.0F);
   
    world.setBlock(x, y, z, ((ItemBackpack)stack.getItem()).getBlockType(), RandomUtils.getInt(2, 6), 3);
    TileEntityBackpack newBackpack = WorldUtils.get(world, x, y, z, TileEntityBackpack.class);
    newBackpack.stack = stack;
   
    return true;
   
  }
View Full Code Here

Examples of net.mcft.copy.betterstorage.tile.entity.TileEntityBackpack

 
  @Override
  public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player,
                                  int side, float hitX, float hitY, float hitZ) {
    if (!world.isRemote) {
      TileEntityBackpack backpack = WorldUtils.get(world, x, y, z, TileEntityBackpack.class);
      IInventory inventory = new InventoryTileEntity(backpack, player.getInventoryEnderChest());
      Container container = new ContainerBetterStorage(player, inventory, 9, 3);
      String name = "container." + Constants.modId + ".enderBackpack";
      PlayerUtils.openGui(player, name, 9, 3, backpack.getCustomTitle(), container);
    }
    return true;
  }
View Full Code Here

Examples of net.mcft.copy.betterstorage.tile.entity.TileEntityBackpack

      return false;
   
    blockBackpack.onBlockPlacedBy(world, x, y, z, carrier, backpack);
    blockBackpack.onPostBlockPlaced(world, x, y, z, orientation.ordinal());
   
    TileEntityBackpack te = WorldUtils.get(world, x, y, z, TileEntityBackpack.class);
    te.stack = backpack.copy();
    if (ItemBackpack.getBackpack(carrier) == backpack)
      te.unequip(carrier, despawn);
   
    String sound = blockBackpack.stepSound.func_150496_b();
    float volume = (blockBackpack.stepSound.getVolume() + 1.0F) / 2.0F;
    float pitch = blockBackpack.stepSound.getPitch() * 0.8F;
    world.playSoundEffect(x + 0.5, y + 0.5, z + 0.5F, sound, volume, pitch);
View Full Code Here

Examples of net.mcft.copy.betterstorage.tile.entity.TileEntityBackpack

    }
  }
 
  @Override
  public TileEntity createTileEntity(World world, int metadata) {
    return new TileEntityBackpack();
  }
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.