Class VillageSiegeEvent


public class VillageSiegeEvent extends net.minecraftforge.eventbus.api.Event
VillageSiegeEvent is fired just before a zombie siege finds a successful location in VillageSiege#tryToSetupSiege(ServerLevel), to give mods the chance to stop the siege.

This event is Cancelable; canceling stops the siege.

This event does not have a result. Event.HasResult

This event is fired on the MinecraftForge.EVENT_BUS.
  • Field Details

    • siege

      private final VillageSiege siege
    • level

      private final Level level
    • player

      private final Player player
    • attemptedSpawnPos

      private final Vec3 attemptedSpawnPos
  • Constructor Details

  • Method Details

    • getSiege

      public VillageSiege getSiege()
    • getLevel

      public Level getLevel()
    • getPlayer

      public Player getPlayer()
    • getAttemptedSpawnPos

      public Vec3 getAttemptedSpawnPos()