public class PlayerSetSpawnEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.VisibilityLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.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.
|
getEntityPlayergetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setupprivate final boolean forced
private final BlockPos newSpawn
public PlayerSetSpawnEvent(EntityPlayer player, BlockPos newSpawn, boolean forced)
public boolean isForced()
public BlockPos getNewSpawn()