Solved Material.getId deprecated

Discussion in 'Plugin Development' started by Yukari, Oct 8, 2013.

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

    Yukari

    I haven't touched bukkit for a while, but just now I updated and am working on some old plugins.

    I noticed that the Material.getId method has been deprecated. I googled and looked through the docs a bit, but I couldn't seem to find an alternative. I would like to know if there is any alternative, I have mad OCD about not getting warnings.

    I know people people will tell me to use the enums instead. But this is for output text, and it'd just be a lot cleaner if it could be IDs instead of enums.
     
  2. Offline

    adam753

  3. Offline

    Yukari

    Ah, I see. Thanks for the link. Enums it is I guess.
     
Thread Status:
Not open for further replies.

Share This Page