BlockState, Metadatablepublic interface CreatureSpawner extends BlockState
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getCreatureTypeName() |
Deprecated.
magic value, use
getSpawnedType(). |
int |
getDelay() |
Get the spawner's delay.
|
EntityType |
getSpawnedType() |
Get the spawner's creature type.
|
void |
setCreatureTypeByName(java.lang.String creatureType) |
Deprecated.
magic value, use
setSpawnedType(org.bukkit.entity.EntityType). |
void |
setDelay(int delay) |
Set the spawner's delay.
|
void |
setSpawnedType(EntityType creatureType) |
Set the spawner's creature type.
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, updategetMetadata, hasMetadata, removeMetadata, setMetadataEntityType getSpawnedType()
void setSpawnedType(EntityType creatureType)
creatureType - The creature type.@Deprecated void setCreatureTypeByName(java.lang.String creatureType)
setSpawnedType(org.bukkit.entity.EntityType).creatureType - The creature type's name.@Deprecated java.lang.String getCreatureTypeName()
getSpawnedType().int getDelay()
void setDelay(int delay)
delay - The delay.