Casting or Converting ItemStack's...

Discussion in 'Plugin Development' started by AOD_Batman, May 17, 2011.

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

    AOD_Batman

    I am looking for a way to cast or convert a net.minecraft.server.ItemStack to a org.bukkit.inventory.ItemStack. Is there a easy way of doing this?

    Nevermind I'm dumb it's been sitting there looking me in the face. :p

    Solution:
    Code:
    CraftItemStack cItem = new CraftItemStack(item);
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
Thread Status:
Not open for further replies.

Share This Page