Class PatrolSpawner

java.lang.Object
net.minecraft.world.spawner.PatrolSpawner
All Implemented Interfaces:
Spawner

public class PatrolSpawner extends Object implements Spawner
Mappings:
Namespace Name
official dhn
intermediary net/minecraft/class_3769
named net/minecraft/world/spawner/PatrolSpawner
  • Field Details

    • cooldown

      private int cooldown
      Mappings:
      Namespace Name Mixin selector
      official a Ldhn;a:I
      intermediary field_16652 Lnet/minecraft/class_3769;field_16652:I
      named cooldown Lnet/minecraft/world/spawner/PatrolSpawner;cooldown:I
  • Constructor Details

    • PatrolSpawner

      public PatrolSpawner()
  • Method Details

    • spawn

      public int spawn(ServerWorld world, boolean spawnMonsters, boolean spawnAnimals)
      Spawns entities into a world.
      Specified by:
      spawn in interface Spawner
      Parameters:
      spawnMonsters - whether monsters should be spawned
      spawnAnimals - whether animals should be spawned
      Returns:
      the number of entities spawned
      Mappings:
      Namespace Name Mixin selector
      official a Lcls;a(Laid;ZZ)I
      intermediary method_6445 Lnet/minecraft/class_5304;method_6445(Lnet/minecraft/class_3218;ZZ)I
      named spawn Lnet/minecraft/world/spawner/Spawner;spawn(Lnet/minecraft/server/world/ServerWorld;ZZ)I
    • spawnPillager

      private boolean spawnPillager(ServerWorld world, BlockPos pos, Random random, boolean captain)
      Parameters:
      captain - whether the pillager is the captain of a patrol
      Mappings:
      Namespace Name Mixin selector
      official a Ldhn;a(Laid;Lgu;Lapd;Z)Z
      intermediary method_16575 Lnet/minecraft/class_3769;method_16575(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;Z)Z
      named spawnPillager Lnet/minecraft/world/spawner/PatrolSpawner;spawnPillager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;Z)Z