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 inVillageSiege#trySetupSiege
, to give mods the chance to stop the siege.
This event isCancelable
; canceling stops the siege.
This event does not have a result.Event.HasResult
This event is fired on theMinecraftForge.EVENT_BUS
.
-
-
Field Summary
Fields Modifier and Type Field Description private Vector3d
attemptedSpawnPos
private PlayerEntity
player
private VillageSiege
siege
private World
world
-
Constructor Summary
Constructors Constructor Description VillageSiegeEvent(VillageSiege siege, World world, PlayerEntity player, Vector3d attemptedSpawnPos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3d
getAttemptedSpawnPos()
PlayerEntity
getPlayer()
VillageSiege
getSiege()
World
getWorld()
-
-
-
Field Detail
-
siege
private final VillageSiege siege
-
world
private final World world
-
player
private final PlayerEntity player
-
attemptedSpawnPos
private final Vector3d attemptedSpawnPos
-
-
Constructor Detail
-
VillageSiegeEvent
public VillageSiegeEvent(VillageSiege siege, World world, PlayerEntity player, Vector3d attemptedSpawnPos)
-
-
Method Detail
-
getSiege
public VillageSiege getSiege()
-
getWorld
public World getWorld()
-
getPlayer
public PlayerEntity getPlayer()
-
getAttemptedSpawnPos
public Vector3d getAttemptedSpawnPos()
-
-