类的使用
org.bukkit.block.spawner.SpawnRule
使用SpawnRule的程序包
-
org.bukkit.block.spawner中SpawnRule的使用
修饰符和类型方法说明SpawnRule.clone()SpawnRule.deserialize(@NotNull Map<String, Object> args) SpawnerEntry.getSpawnRule()获取此SpawnerEntry的SpawnRule的副本,如果没有设置则返回null。参数类型为SpawnRule的org.bukkit.block.spawner中的方法修饰符和类型方法说明voidSpawnerEntry.setSpawnRule(@Nullable SpawnRule spawnRule) 设置此SpawnerEntry的SpawnRule,可以使用null来清除当前的生成规则。参数类型为SpawnRule的org.bukkit.block.spawner中的构造器限定符构造器说明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的使用
参数类型为SpawnRule的org.bukkit.spawner中的方法修饰符和类型方法说明voidBaseSpawner.addPotentialSpawn(@NotNull EntitySnapshot snapshot, int weight, @Nullable SpawnRule spawnRule) Adds a newEntitySnapshotto the list of entities this spawner can spawn.