Package org.bukkit.block
Interface CreatureSpawner
- All Superinterfaces:
BaseSpawner
,BlockState
,Metadatable
,PersistentDataHolder
,Spawner
,TileState
Represents a captured state of a creature spawner.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.void
setCreatureTypeByName
(String creatureType) Deprecated.magic value, useBaseSpawner.setSpawnedType(org.bukkit.entity.EntityType)
.Methods inherited from interface org.bukkit.spawner.BaseSpawner
addPotentialSpawn, addPotentialSpawn, getDelay, getPotentialSpawns, getRequiredPlayerRange, getSpawnedEntity, getSpawnedType, getSpawnRange, setPotentialSpawns, setRequiredPlayerRange, setSpawnedEntity, setSpawnedEntity, setSpawnedType, setSpawnRange
Methods inherited from interface org.bukkit.block.BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.spawner.Spawner
getMaxNearbyEntities, getMaxSpawnDelay, getMinSpawnDelay, getSpawnCount, setDelay, setMaxNearbyEntities, setMaxSpawnDelay, setMinSpawnDelay, setSpawnCount
Methods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer
-
Method Details
-
setCreatureTypeByName
Deprecated.magic value, useBaseSpawner.setSpawnedType(org.bukkit.entity.EntityType)
.Set the spawner mob type.- Parameters:
creatureType
- The creature type's name or null to clear.
-
getCreatureTypeName
Deprecated.magic value, useBaseSpawner.getSpawnedType()
.Get the spawner's creature type.- Returns:
- The creature type's name if is set.
-
BaseSpawner.getSpawnedType()
.