Display a chest window...

Discussion in 'Plugin Development' started by DalexL, Aug 12, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    How do I display a chest window from my plugin? Basically, I want people to be able to open a chest that is far away from anywhere to switch out items. They specify the chest and then can open it with a command from anywhere... how can I force the chest open without them clicking on it?
  2. Offline


    1. EntityPlayer eplayer = ((CraftPlayer)player).getHandle();
    2. TileEntityChest chest = (TileEntityChest)((CraftWorld)world).getHandle().getTileEntity(x,y,z);
    3. eplayer.a(chest);
  3. Offline


  4. Offline


    It's from CraftBukkit, there are no apidocs of it. You can check the source here.
  5. Offline


    What is CraftBukkit?
  6. Offline


    .................. It's what you run the server on.
  7. Offline


    So what are the apidocs that I listed for?
  8. They are for bukkit (the API).

    bukkit.jar = the API you usually use for plugins.
    craftbukkit.jar = the complete server with mojang's code, and the implementations of bukkit.jar.

    What Shamebot accesses in his post is called obfuscated code and comes directly from the net.minecraft.server and craftbukkit classes.
  9. Offline


    For Bukkit. Bukkit is an API, CraftBukkit is an implemention of this API and is wrapped around the minecraft server. But not all things can be done using the Bukkit API (yet), sometimes you have to bypass it.
  10. What is DalexL?
  11. Offline


    not funny. without description some functions we kill brains when searching solutions
Thread Status:
Not open for further replies.

Share This Page