Uses of Class
org.bukkit.block.spawner.SpawnRule
Package
Description
Classes used to manipulate the voxels in a
world
,
including special states.Classes relevant to mob spawners.
-
Uses of SpawnRule in org.bukkit.block
Modifier and TypeMethodDescriptionvoid
CreatureSpawner.addPotentialSpawn
(@NotNull EntitySnapshot snapshot, int weight, @Nullable SpawnRule spawnRule) Adds a newEntitySnapshot
to the list of entities this spawner can spawn. -
Uses of SpawnRule in org.bukkit.block.spawner
Modifier and TypeMethodDescriptionSpawnRule.clone()
SpawnRule.deserialize
(@NotNull Map<String, Object> args) SpawnerEntry.getSpawnRule()
Gets a copy of theSpawnRule
for this SpawnerEntry, or null if none has been set.Modifier and TypeMethodDescriptionvoid
SpawnerEntry.setSpawnRule
(@Nullable SpawnRule spawnRule) Sets theSpawnRule
for this SpawnerEntry, null may be used to clear the current spawn rule.ModifierConstructorDescriptionSpawnerEntry
(@NotNull EntitySnapshot snapshot, int spawnWeight, @Nullable SpawnRule spawnRule) SpawnerEntry
(@NotNull EntitySnapshot snapshot, int spawnWeight, @Nullable SpawnRule spawnRule, @Nullable SpawnerEntry.Equipment equipment)