Uses of Class
org.bukkit.block.spawner.SpawnRule
Packages that use SpawnRule
Package
Description
Classes relevant to mob spawners.
Classes related to entity spawners.
-
Uses of SpawnRule in org.bukkit.block.spawner
Methods in org.bukkit.block.spawner that return SpawnRuleModifier and TypeMethodDescriptionSpawnRule.clone()static SpawnRuleSpawnRule.deserialize(Map<String, Object> args) Required method for configuration serialization.SpawnerEntry.getSpawnRule()Gets a copy of theSpawnRulefor this SpawnerEntry, or null if none has been set.Methods in org.bukkit.block.spawner with parameters of type SpawnRuleModifier and TypeMethodDescriptionvoidSpawnerEntry.setSpawnRule(@Nullable SpawnRule spawnRule) Sets theSpawnRulefor this SpawnerEntry, null may be used to clear the current spawn rule.Constructors in org.bukkit.block.spawner with parameters of type SpawnRuleModifierConstructorDescriptionSpawnerEntry(EntitySnapshot snapshot, int spawnWeight, @Nullable SpawnRule spawnRule) Creates a new spawner entry without equipment.SpawnerEntry(EntitySnapshot snapshot, int spawnWeight, @Nullable SpawnRule spawnRule, @Nullable SpawnerEntry.Equipment equipment) Creates a new spawner entry. -
Uses of SpawnRule in org.bukkit.spawner
Methods in org.bukkit.spawner with parameters of type SpawnRuleModifier and TypeMethodDescriptionvoidBaseSpawner.addPotentialSpawn(EntitySnapshot snapshot, int weight, @Nullable SpawnRule spawnRule) Adds a newEntitySnapshotto the list of entities this spawner can spawn.