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 CreatureType
getCreatureType()
Deprecated.In favour ofgetSpawnedType()
.java.lang.String
getCreatureTypeId()
Deprecated.java.lang.String
getCreatureTypeName()
Get the spawner's creature type.int
getDelay()
Get the spawner's delay.EntityType
getSpawnedType()
Get the spawner's creature type.void
setCreatureType(CreatureType creatureType)
Deprecated.In favour ofsetSpawnedType(EntityType)
.void
setCreatureTypeByName(java.lang.String creatureType)
Set the spawner mob type.void
setCreatureTypeId(java.lang.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 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.
-