public class SaveHandler extends java.lang.Object implements IPlayerFileData
修飾子とタイプ | フィールドと説明 |
---|---|
protected com.mojang.datafixers.DataFixer |
fixerUpper |
コンストラクタと説明 |
---|
SaveHandler(java.io.File p_i51278_1_,
java.lang.String p_i51278_2_,
MinecraftServer p_i51278_3_,
com.mojang.datafixers.DataFixer p_i51278_4_) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
checkSessionLock()
Checks the session lock to prevent save collisions
|
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()
Gets the File object corresponding to the base directory of this world.
|
WorldInfo |
loadWorldInfo()
Loads and returns the world info
|
CompoundNBT |
readPlayerData(PlayerEntity player)
Reads the player data from disk into the specified PlayerEntityMP.
|
void |
saveWorldInfo(WorldInfo worldInformation)
used to update level.dat from old format to MCRegion format
|
void |
saveWorldInfoWithPlayer(WorldInfo worldInformation,
CompoundNBT tagCompound)
Saves the given World Info with the given NBTTagCompound as the Player.
|
void |
writePlayerData(PlayerEntity player)
Writes the player data to disk from the specified PlayerEntityMP.
|
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)
public java.io.File getWorldDirectory()
public void checkSessionLock() throws SessionLockException
@Nullable public WorldInfo loadWorldInfo()
public void saveWorldInfo(WorldInfo worldInformation)
public void writePlayerData(PlayerEntity player)
writePlayerData
インタフェース内 IPlayerFileData
@Nullable public CompoundNBT readPlayerData(PlayerEntity player)
readPlayerData
インタフェース内 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()