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#trySetupSiege
, 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
FieldsModifier and TypeFieldDescriptionprivate final Vector3d
private final PlayerEntity
private final VillageSiege
private final World
-
Constructor Summary
ConstructorsConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, World world, PlayerEntity player, Vector3d 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
public VillageSiegeEvent(VillageSiege siege, World world, PlayerEntity player, Vector3d attemptedSpawnPos)
-
-
Method Details
-
getSiege
-
getWorld
-
getPlayer
-
getAttemptedSpawnPos
-