类的使用
org.bukkit.block.spawner.SpawnRule
程序包
说明
Classes relevant to mob spawners.
Classes related to entity spawners.
-
org.bukkit.block.spawner中SpawnRule的使用
修饰符和类型方法说明SpawnRule.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.修饰符和类型方法说明void
SpawnerEntry.setSpawnRule
(@Nullable SpawnRule spawnRule) Sets theSpawnRule
for this SpawnerEntry, null may be used to clear the current spawn rule.限定符构造器说明SpawnerEntry
(@NotNull EntitySnapshot snapshot, int spawnWeight, @Nullable SpawnRule spawnRule) SpawnerEntry
(@NotNull EntitySnapshot snapshot, int spawnWeight, @Nullable SpawnRule spawnRule, @Nullable SpawnerEntry.Equipment equipment) -
org.bukkit.spawner中SpawnRule的使用
修饰符和类型方法说明void
BaseSpawner.addPotentialSpawn
(@NotNull EntitySnapshot snapshot, int weight, @Nullable SpawnRule spawnRule) Adds a newEntitySnapshot
to the list of entities this spawner can spawn.