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

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

  1. 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 (Text):
    1. ((CraftItemStack)itemStack).getHandle();

Share This Page