public static class PlayerEvent.SaveToFile 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
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private java.io.File |
playerDirectory |
private java.lang.String |
playerUUID |
Constructor and Description |
---|
SaveToFile(EntityPlayer 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.
|
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final java.io.File playerDirectory
private final java.lang.String playerUUID
public SaveToFile(EntityPlayer 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()