public class PlayerSetSpawnEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private boolean |
forced |
private BlockPos |
newSpawn |
Constructor and Description |
---|
PlayerSetSpawnEvent(EntityPlayer 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.
|
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final boolean forced
private final BlockPos newSpawn
public PlayerSetSpawnEvent(EntityPlayer player, BlockPos newSpawn, boolean forced)
public boolean isForced()
public BlockPos getNewSpawn()