Class VillageSiegeEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.village.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
    • world

      private final Level world
    • player

      private final Player player
    • attemptedSpawnPos

      private final Vec3 attemptedSpawnPos
  • Constructor Details

  • Method Details

    • getSiege

      public VillageSiege getSiege()
    • getWorld

      public Level getWorld()
    • getPlayer

      public Player getPlayer()
    • getAttemptedSpawnPos

      public Vec3 getAttemptedSpawnPos()