public static class PlayerEvent.SaveToFile extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private java.io.File |
playerDirectory |
private java.lang.String |
playerUUID |
Constructor and Description |
---|
SaveToFile(PlayerEntity player,
java.io.File originDirectory,
java.lang.String playerUUID) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getPlayerDirectory()
The directory where player data is being stored.
|
java.io.File |
getPlayerFile(java.lang.String suffix)
Construct and return a recommended file for the supplied suffix
|
java.lang.String |
getPlayerUUID()
The UUID is the standard for player related file storage.
|
getPlayer
getEntityLiving
getEntity
private final java.io.File playerDirectory
private final java.lang.String playerUUID
public SaveToFile(PlayerEntity player, java.io.File originDirectory, java.lang.String playerUUID)
public java.io.File getPlayerFile(java.lang.String suffix)
suffix
- The suffix to use.public java.io.File getPlayerDirectory()
public java.lang.String getPlayerUUID()