类的使用
org.bukkit.block.spawner.SpawnRule
使用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 theSpawnRulefor this SpawnerEntry, or null if none has been set.参数类型为SpawnRule的org.bukkit.block.spawner中的方法修饰符和类型方法说明voidSpawnerEntry.setSpawnRule(@Nullable SpawnRule spawnRule) Sets theSpawnRulefor this SpawnerEntry, null may be used to clear the current spawn rule.参数类型为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.