类 PillagerSpawner
- java.lang.Object
-
- net.minecraft.world.gen.PillagerSpawner
-
-
字段概要
字段 修饰符和类型 字段 说明 private intticksUntilNextSpawn
-
构造器概要
构造器 构造器 说明 PillagerSpawner()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intspawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)Spawns entities into a world.private booleanspawnPillager(ServerWorld world, BlockPos pos, Random random, boolean captain)
-
-
-
方法详细资料
-
spawn
public int spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
Spawns entities into a world.- 指定者:
spawn在接口中Spawner- 参数:
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
-
spawnPillager
private boolean spawnPillager(ServerWorld world, BlockPos pos, Random random, boolean captain)
- 参数:
captain- whether the pillager is the captain of a patrol- Mappings:
Namespace Name Mixin selector official aLcoz;a(Labj;Lgb;Ljava/util/Random;Z)Zintermediary method_16575Lnet/minecraft/class_3769;method_16575(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;Z)Znamed spawnPillagerLnet/minecraft/world/gen/PillagerSpawner;spawnPillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;Z)Z
-
-