public class PlayerLoginEvent extends Object implements PlayerEvent
| Constructor and Description |
|---|
PlayerLoginEvent(Player player,
Vector3f spawnPosition,
Level spawnLevel,
Rotation rotation,
GameMode gameMode) |
| Modifier and Type | Method and Description |
|---|---|
GameMode |
getGameMode() |
Player |
getPlayer()
Get the player in question.
|
Rotation |
getRotation()
Get the rotation at which the player will spawn.
|
Level |
getSpawnLevel()
Level in which the player will spawn
|
Vector3f |
getSpawnPosition()
The spawn position that the player will spawn at.
|
void |
setGameMode(GameMode gameMode) |
void |
setRotation(Rotation rotation)
Set the rotation the player will spawn.
|
void |
setSpawnLevel(Level spawnLevel)
Set which level the player should spawn to.
|
void |
setSpawnLocation(Vector3f spawnPosition)
Set the position at which the player will spawn.
|
public Level getSpawnLevel()
public void setSpawnLevel(Level spawnLevel)
spawnLevel - levelpublic Rotation getRotation()
public void setRotation(Rotation rotation)
rotation - rotationpublic Vector3f getSpawnPosition()
public void setSpawnLocation(Vector3f spawnPosition)
spawnPosition - locationpublic GameMode getGameMode()
public void setGameMode(GameMode gameMode)
public Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventCopyright © 2017–2018 NukkitX. All rights reserved.