Package org.bukkit.block
Interface CreatureSpawner
- All Superinterfaces:
BlockState
,Metadatable
Represents a creature spawner.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Get the spawner's creature type.int
getDelay()
Get the spawner's delay.Get the spawner's creature type.void
setCreatureType
(CreatureType creatureType) Deprecated.In favour ofsetSpawnedType(EntityType)
.void
setCreatureTypeByName
(String creatureType) Set the spawner mob type.void
setCreatureTypeId
(String creatureType) Deprecated.void
setDelay
(int delay) Set the spawner's delay.void
setSpawnedType
(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, update
Methods 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.Get the spawner's creature type.- Returns:
- The creature type's name.
-
setCreatureTypeByName
Set the spawner mob type.- Parameters:
creatureType
- The creature type's name.
-
getCreatureTypeName
String getCreatureTypeName()Get the spawner's creature type.- Returns:
- The creature type's name.
-
setCreatureTypeId
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.
-
getSpawnedType()
.