Package org.bukkit.block
Interface CreatureSpawner
- All Superinterfaces:
BaseSpawner
,BlockState
,Metadatable
,PersistentDataHolder
,PersistentDataViewHolder
,Spawner
,TileState
Represents a captured state of a creature spawner.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.void
setCreatureTypeByName
(@Nullable 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, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, 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, isActivated, resetTimer, setDelay, setMaxNearbyEntities, setMaxSpawnDelay, setMinSpawnDelay, setSpawnCount, setSpawnedItem
Methods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer, isSnapshot
-
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()
.