Class ZombieSiegeManager

java.lang.Object
net.minecraft.village.ZombieSiegeManager
All Implemented Interfaces:
Spawner

public class ZombieSiegeManager
extends Object
implements Spawner
  • Field Details

    • field_26390

      private static final Logger field_26390
    • spawned

      private boolean spawned
    • state

      private ZombieSiegeManager.State state
    • remaining

      private int remaining
    • countdown

      private int countdown
    • startX

      private int startX
    • startY

      private int startY
    • startZ

      private int startZ
  • Constructor Details

    • ZombieSiegeManager

      public ZombieSiegeManager()
  • 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
    • spawn

      private boolean spawn​(ServerWorld world)
    • trySpawnZombie

      private void trySpawnZombie​(ServerWorld world)
    • getSpawnVector

      @Nullable private Vec3d getSpawnVector​(ServerWorld world, BlockPos pos)