Package net.minecraftforge.event.village
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
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
Cancelable
; canceling stops the siege.This event does not have a result.
Event.HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVillageSiegeEvent(VillageSiege siege, Level world, Player player, Vec3 attemptedSpawnPos)
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
siege
-
world
-
player
-
attemptedSpawnPos
-
-
Constructor Details
-
VillageSiegeEvent
-
-
Method Details
-
getSiege
-
getWorld
-
getPlayer
-
getAttemptedSpawnPos
-