Spawner Type

Discussion in 'Plugin Development' started by KaiBB, May 13, 2012.

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

    KaiBB

    I would normally decompile Super Simple Spawners or something, but I'm on my phone, so I'm asking here. Does anyone know how to get the mob type of a spawner? Thanks! :D
     
  2. Offline

    CorrieKay

    Block block = getYourBlockHere
    if(block.getState() instanceof CreatureSpawner){
    CreaturesSpawner cs = (CreatureSpawner)block.getState();
    cs.getSpawnedType().getName();
    }
    should do the trick :)
     
    KaiBB likes this.
  3. Offline

    KaiBB

    Ah, it's getState that I needed. Thanks CorrieKay ! Here, have a like ;)
     
Thread Status:
Not open for further replies.

Share This Page