Package org.bukkit.block
Interface CreatureSpawner
- All Superinterfaces:
BlockState,Metadatable
public interface CreatureSpawner extends BlockState
Represents a creature spawner.
-
Method Summary
Modifier and Type Method Description CreatureTypegetCreatureType()Deprecated.In favour ofgetSpawnedType().java.lang.StringgetCreatureTypeId()Deprecated.java.lang.StringgetCreatureTypeName()Get the spawner's creature type.intgetDelay()Get the spawner's delay.EntityTypegetSpawnedType()Get the spawner's creature type.voidsetCreatureType(CreatureType creatureType)Deprecated.In favour ofsetSpawnedType(EntityType).voidsetCreatureTypeByName(java.lang.String creatureType)Set the spawner mob type.voidsetCreatureTypeId(java.lang.String creatureType)Deprecated.voidsetDelay(int delay)Set the spawner's delay.voidsetSpawnedType(EntityType creatureType)Set the spawner's creature type.Methods inherited from interface org.bukkit.block.BlockState
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, updateMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Method Details
-
getCreatureType
Deprecated.In favour ofgetSpawnedType().Get the spawner's creature type.- Returns:
- The creature type.
-
getSpawnedType
EntityType getSpawnedType()Get the spawner's creature type.- Returns:
- The creature type.
-
setSpawnedType
Set the spawner's creature type.- Parameters:
creatureType- The creature type.
-
setCreatureType
Deprecated.In favour ofsetSpawnedType(EntityType).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)Deprecated.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.
-