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
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
public PlayerSetSpawnEvent(EntityPlayer player, BlockPos newSpawn, boolean forced)
public boolean isForced()
public BlockPos getNewSpawn()