Convert org.bukkit.inventory.ItemStack to net.minecraft.server.ItemStack

Discussion in 'Plugin Development' started by ase34, Sep 9, 2012.

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

    ase34

    Hello,

    Is there a possibility to convert an org.bukkit.inventory.ItemStack with all properties, enchatments and metadatas etc. to a net.minecraft.server.ItemStack? Thank you for help.
     
  2. Since Metadata is only for bukkit, you can't "convert" it to use it within nms classes. Rest should be fine:
    Code:
    ((CraftItemStack)itemStack).getHandle();
     
Thread Status:
Not open for further replies.

Share This Page