public interface StackedSpawner extends StackedObject<org.bukkit.block.CreatureSpawner>, UpgradeableStackedObject
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.ItemStack |
getDropItem()
Get the drop item of the spawner.
|
org.bukkit.inventory.ItemStack |
getDropItem(int amount)
Get the drop item of the spawner.
|
org.bukkit.entity.LivingEntity |
getLinkedEntity()
Get the entity that is linked into this spawner.
|
java.util.List<StackedSpawner> |
getNearbySpawners()
Get all the nearby stacked-spawners that the spawner can stack into in the merge range.
|
org.bukkit.entity.EntityType |
getSpawnedType()
Get the spawned-type of the creature-spawner.
|
org.bukkit.block.CreatureSpawner |
getSpawner()
Get the creature-spawner object of bukkit.
|
void |
setLinkedEntity(org.bukkit.entity.LivingEntity linkedEntity)
Set an entity to be linked into this spawner.
|
canStackInto, getLocation, getMergeRadius, getStackAmount, getStackLimit, getWorld, isBlacklisted, isCached, isSimilar, isWhitelisted, isWorldDisabled, remove, runStack, runStack, runStackAsync, runStackCheck, runUnstack, runUnstack, setStackAmount, spawnStackParticle, tryStack, tryStackInto, tryUnstack, updateName
getUpgrade, setUpgrade
org.bukkit.block.CreatureSpawner getSpawner()
org.bukkit.entity.EntityType getSpawnedType()
org.bukkit.entity.LivingEntity getLinkedEntity()
void setLinkedEntity(org.bukkit.entity.LivingEntity linkedEntity)
linkedEntity
- an entity to linkjava.util.List<StackedSpawner> getNearbySpawners()
org.bukkit.inventory.ItemStack getDropItem()
org.bukkit.inventory.ItemStack getDropItem(int amount)
amount
- the amount of the item to drop.