Class VillageSiegeEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.village.VillageSiegeEvent
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent

public class VillageSiegeEvent extends net.neoforged.bus.api.Event implements net.neoforged.bus.api.ICancellableEvent
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 ICancellableEvent; canceling stops the siege.

This event does not have a result.
invalid reference
HasResult


This event is fired on the NeoForge.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()