Solved Changing spawner type

Discussion in 'Plugin Development' started by 64BFox, Nov 25, 2012.

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

    64BFox

    Hello,
    I've been writing a plugin, and part of it changes a spawner type, but according to the JD all of the methods I could find were deprechated, and some of them didn't even work for me. Anyone know how to do this?
    Thanks in advance,
    64
     
  2. Offline

    Panjab

    Deprecated doesn't even mean that it isn't working.
     
  3. Offline

    64BFox

    In this case It does.

    spawner.setCreatureType(CreatureType.fromName(name));

    Doesn't work. after appending .fromName, it breaks CreatureType.

    A friend told me that I should be using EntityType, so I've figured this out now.

    Sorry to open a thread only to solve the problem a few seconds later. :/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
Thread Status:
Not open for further replies.

Share This Page