public class PlayerSetSpawnEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
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
public PlayerSetSpawnEvent(EntityPlayer player, BlockPos newSpawn, boolean forced)
public boolean isForced()
public BlockPos getNewSpawn()