public class VillageSiegeEvent extends Event
VillageSiege.trySetupSiege()
, to give mods the chance to stop the siege.Cancelable
; canceling stops the siege.Event.HasResult
MinecraftForge.EVENT_BUS
.Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private Vec3d |
attemptedSpawnPos |
private EntityPlayer |
player |
private VillageSiege |
siege |
private Village |
village |
private World |
world |
Constructor and Description |
---|
VillageSiegeEvent(VillageSiege siege,
World world,
EntityPlayer player,
Village village,
Vec3d attemptedSpawnPos) |
Modifier and Type | Method and Description |
---|---|
Vec3d |
getAttemptedSpawnPos() |
EntityPlayer |
getPlayer() |
VillageSiege |
getSiege() |
Village |
getVillage() |
World |
getWorld() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final VillageSiege siege
private final World world
private final EntityPlayer player
private final Village village
private final Vec3d attemptedSpawnPos
public VillageSiegeEvent(VillageSiege siege, World world, EntityPlayer player, Village village, Vec3d attemptedSpawnPos)
public VillageSiege getSiege()
public World getWorld()
public EntityPlayer getPlayer()
public Village getVillage()
public Vec3d getAttemptedSpawnPos()