Class VillageSiege

java.lang.Object
net.minecraft.world.entity.ai.village.VillageSiege
All Implemented Interfaces:
CustomSpawner

public class VillageSiege extends Object implements CustomSpawner
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • hasSetupSiege

      private boolean hasSetupSiege
    • siegeState

      private VillageSiege.State siegeState
    • zombiesToSpawn

      private int zombiesToSpawn
    • nextSpawnTime

      private int nextSpawnTime
    • spawnX

      private int spawnX
    • spawnY

      private int spawnY
    • spawnZ

      private int spawnZ
  • Constructor Details

    • VillageSiege

      public VillageSiege()
  • Method Details

    • tick

      public int tick(ServerLevel p_27013_, boolean p_27014_, boolean p_27015_)
      Specified by:
      tick in interface CustomSpawner
    • tryToSetupSiege

      private boolean tryToSetupSiege(ServerLevel p_27008_)
    • trySpawn

      private void trySpawn(ServerLevel p_27017_)
    • findRandomSpawnPos

      @Nullable private Vec3 findRandomSpawnPos(ServerLevel p_27010_, BlockPos p_27011_)