Item Id to Material?

Discussion in 'Plugin Development' started by Serubin323, Dec 19, 2011.

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

    Serubin323

    SOLVED!

    Material.getMaterial(id);

    How would i take an item id (such as '56') to a MaterialData?
    This is what i tried:
    Code:
    MaterialData itemId;
                        int itemIdRaw;
                        itemIdRaw = Integer.parseInt(args[0]);
                        itemId = setTypeId(itemIdRaw);
    And the error i get from eclipse is "The method setTypeId(int) is undefined for the type HatMe", hatme is the name of my plugin.
    Any ideas?
     
Thread Status:
Not open for further replies.

Share This Page