public class PlayerSetSpawnEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private boolean |
forced |
private BlockPos |
newSpawn |
Constructor and Description |
---|
PlayerSetSpawnEvent(PlayerEntity player,
BlockPos newSpawn,
boolean forced) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getNewSpawn() |
boolean |
isForced()
This event is called before a player's spawn point is changed.
|
getPlayer
getEntityLiving
getEntity
private final boolean forced
private final BlockPos newSpawn
public PlayerSetSpawnEvent(PlayerEntity player, BlockPos newSpawn, boolean forced)
public boolean isForced()
public BlockPos getNewSpawn()