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
This event is
This event does not have a result.
This event is fired on the
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 Summary
Modifier and TypeFieldDescriptionprivate final Vec3
private final Level
private final Player
private final VillageSiege
-
Constructor Summary
ConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, Level level, Player player, Vec3 attemptedSpawnPos) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
siege
-
level
-
player
-
attemptedSpawnPos
-
-
Constructor Details
-
VillageSiegeEvent
-
-
Method Details
-
getSiege
-
getLevel
-
getPlayer
-
getAttemptedSpawnPos
-