public class VillageSiegeEvent
extends net.minecraftforge.eventbus.api.Event
VillageSiege.trySetupSiege(net.minecraft.world.server.ServerWorld)
, to give mods the chance to stop the siege.Cancelable
; canceling stops the siege.HasResult
MinecraftForge.EVENT_BUS
.Modifier and Type | Field and Description |
---|---|
private Vec3d |
attemptedSpawnPos |
private PlayerEntity |
player |
private VillageSiege |
siege |
private World |
world |
Constructor and Description |
---|
VillageSiegeEvent(VillageSiege siege,
World world,
PlayerEntity player,
Vec3d attemptedSpawnPos) |
Modifier and Type | Method and Description |
---|---|
Vec3d |
getAttemptedSpawnPos() |
PlayerEntity |
getPlayer() |
VillageSiege |
getSiege() |
World |
getWorld() |
private final VillageSiege siege
private final World world
private final PlayerEntity player
private final Vec3d attemptedSpawnPos
public VillageSiegeEvent(VillageSiege siege, World world, PlayerEntity player, Vec3d attemptedSpawnPos)
public VillageSiege getSiege()
public World getWorld()
public PlayerEntity getPlayer()
public Vec3d getAttemptedSpawnPos()