接口 Spawner
-
public interface SpawnerHandles spawning entities in a world.A spawner is typically used to spawn entities within a special context, such as cats in a village or wandering traders.
- Mappings:
Namespace Name official bvdintermediary net/minecraft/class_5304named net/minecraft/world/gen/Spawner
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 intspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)Spawns entities into a world.
-
-
-
方法详细资料
-
spawn
int spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
Spawns entities into a world.- 参数:
spawnMonsters- whether monsters should be spawnedspawnAnimals- whether animals should be spawned- 返回:
- the number of entities spawned
- Mappings:
Namespace Name Mixin selector official aLbvd;a(Labj;ZZ)Iintermediary method_6445Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)Inamed spawnLnet/minecraft/world/gen/Spawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
-
-