Interface CreatureSpawner

All Superinterfaces:
BlockState, Metadatable

public interface CreatureSpawner
extends BlockState
Represents a creature spawner.
  • Method Details

    • getCreatureType

      @Deprecated CreatureType getCreatureType()
      Deprecated.
      In favour of getSpawnedType().
      Get the spawner's creature type.
      Returns:
      The creature type.
    • getSpawnedType

      EntityType getSpawnedType()
      Get the spawner's creature type.
      Returns:
      The creature type.
    • setSpawnedType

      void setSpawnedType​(EntityType creatureType)
      Set the spawner's creature type.
      Parameters:
      creatureType - The creature type.
    • setCreatureType

      @Deprecated void setCreatureType​(CreatureType creatureType)
      Deprecated.
      Set the spawner creature type.
      Parameters:
      creatureType - The creature type.
    • getCreatureTypeId

      @Deprecated java.lang.String getCreatureTypeId()
      Deprecated.
      Get the spawner's creature type.
      Returns:
      The creature type's name.
    • setCreatureTypeByName

      void setCreatureTypeByName​(java.lang.String creatureType)
      Set the spawner mob type.
      Parameters:
      creatureType - The creature type's name.
    • getCreatureTypeName

      java.lang.String getCreatureTypeName()
      Get the spawner's creature type.
      Returns:
      The creature type's name.
    • setCreatureTypeId

      @Deprecated void setCreatureTypeId​(java.lang.String creatureType)
      Set the spawner mob type.
      Parameters:
      creatureType - The creature type's name.
    • getDelay

      int getDelay()
      Get the spawner's delay.
      Returns:
      The delay.
    • setDelay

      void setDelay​(int delay)
      Set the spawner's delay.
      Parameters:
      delay - The delay.