类 PillagerSpawner

  • 所有已实现的接口:
    Spawner

    public class PillagerSpawner
    extends Object
    implements Spawner
    Mappings:
    Namespace Name
    official coz
    intermediary net/minecraft/class_3769
    named net/minecraft/world/gen/PillagerSpawner
    • 字段详细资料

      • ticksUntilNextSpawn

        private int ticksUntilNextSpawn
        Mappings:
        Namespace Name Mixin selector
        official a Lcoz;a:I
        intermediary field_16652 Lnet/minecraft/class_3769;field_16652:I
        named ticksUntilNextSpawn Lnet/minecraft/world/gen/PillagerSpawner;ticksUntilNextSpawn:I
    • 构造器详细资料

      • PillagerSpawner

        public PillagerSpawner()
    • 方法详细资料

      • spawn

        public int spawn​(ServerWorld world,
                         boolean spawnMonsters,
                         boolean spawnAnimals)
        Spawns entities into a world.
        指定者:
        spawn 在接口中 Spawner
        参数:
        spawnMonsters - whether monsters should be spawned
        spawnAnimals - whether animals should be spawned
        返回:
        the number of entities spawned
        Mappings:
        Namespace Name Mixin selector
        official a Lbvd;a(Labj;ZZ)I
        intermediary method_6445 Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)I
        named spawn Lnet/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 a Lcoz;a(Labj;Lgb;Ljava/util/Random;Z)Z
        intermediary method_16575 Lnet/minecraft/class_3769;method_16575(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;Z)Z
        named spawnPillager Lnet/minecraft/world/gen/PillagerSpawner;spawnPillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;Z)Z