public class SaveHandler extends java.lang.Object implements IPlayerFileData
Modifier and Type | Field and Description |
---|---|
private long |
field_215776_e |
protected com.mojang.datafixers.DataFixer |
fixerUpper |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.io.File |
playersDirectory |
private TemplateManager |
templateManager |
private java.io.File |
worldDirectory |
private java.lang.String |
worldId |
Constructor and Description |
---|
SaveHandler(java.io.File p_i51278_1_,
java.lang.String p_i51278_2_,
MinecraftServer p_i51278_3_,
com.mojang.datafixers.DataFixer p_i51278_4_) |
Modifier and Type | Method and Description |
---|---|
void |
checkSessionLock() |
private void |
func_215770_h() |
java.lang.String[] |
func_215771_d() |
com.mojang.datafixers.DataFixer |
getFixer() |
java.io.File |
getPlayerFolder() |
CompoundNBT |
getPlayerNBT(ServerPlayerEntity player) |
TemplateManager |
getStructureTemplateManager() |
java.io.File |
getWorldDirectory() |
WorldInfo |
loadWorldInfo() |
CompoundNBT |
readPlayerData(PlayerEntity player) |
void |
saveWorldInfo(WorldInfo worldInformation) |
void |
saveWorldInfoWithPlayer(WorldInfo worldInformation,
CompoundNBT tagCompound) |
void |
writePlayerData(PlayerEntity player) |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.io.File worldDirectory
private final java.io.File playersDirectory
private final long field_215776_e
private final java.lang.String worldId
private final TemplateManager templateManager
protected final com.mojang.datafixers.DataFixer fixerUpper
public SaveHandler(java.io.File p_i51278_1_, java.lang.String p_i51278_2_, @Nullable MinecraftServer p_i51278_3_, com.mojang.datafixers.DataFixer p_i51278_4_)
public void saveWorldInfoWithPlayer(WorldInfo worldInformation, @Nullable CompoundNBT tagCompound)
private void func_215770_h()
public java.io.File getWorldDirectory()
public void checkSessionLock() throws SessionLockException
SessionLockException
@Nullable public WorldInfo loadWorldInfo()
public void saveWorldInfo(WorldInfo worldInformation)
public void writePlayerData(PlayerEntity player)
writePlayerData
in interface IPlayerFileData
@Nullable public CompoundNBT readPlayerData(PlayerEntity player)
readPlayerData
in interface IPlayerFileData
public java.lang.String[] func_215771_d()
public TemplateManager getStructureTemplateManager()
public com.mojang.datafixers.DataFixer getFixer()
public CompoundNBT getPlayerNBT(ServerPlayerEntity player)
public java.io.File getPlayerFolder()