public static interface PlayerDataService.PlayerReader extends AutoCloseable
PlayerDataService.beginReadingData(java.util.UUID)
.Modifier and Type | Method and Description |
---|---|
void |
close()
Close any resources involved in reading the player data.
|
org.bukkit.Location |
getBedSpawnLocation()
Get the player's bed spawn location if available.
|
long |
getFirstPlayed()
Get the first-played time if available.
|
String |
getLastKnownName()
Get the player's last known username if available.
|
long |
getLastPlayed()
Get the last-played time if available.
|
org.bukkit.Location |
getLocation()
Get the last saved location of the player if available.
|
boolean |
hasPlayedBefore()
Check whether the player has played before.
|
void |
readData(GlowPlayer player)
Finish reading the rest of the player's entity data into the specified player entity.
|
boolean hasPlayedBefore()
If the player has not played before, most of the rest of the fields will have their default values.
If the player has played before, some fields may still not have meaningful values, depending on the data.
org.bukkit.Location getLocation()
org.bukkit.Location getBedSpawnLocation()
long getFirstPlayed()
long getLastPlayed()
String getLastKnownName()
void readData(GlowPlayer player)
player
- The target player.void close()
close
in interface AutoCloseable
Copyright © 2021. All rights reserved.