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.
Event.HasResult
This event is fired on the
NeoForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vec3
private final Level
private final Player
private final VillageSiege
-
Constructor Summary
ConstructorsConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, Level level, Player player, Vec3 attemptedSpawnPos) -
Method Summary
Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
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
-