public class WorldSaveHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected com.mojang.datafixers.DataFixer |
dataFixer |
private static Logger |
LOGGER |
private File |
playerDataDir |
Constructor and Description |
---|
WorldSaveHandler(LevelStorage.Session session,
com.mojang.datafixers.DataFixer dataFixer) |
Modifier and Type | Method and Description |
---|---|
String[] |
getSavedPlayerIds() |
CompoundTag |
loadPlayerData(PlayerEntity playerEntity) |
void |
savePlayerData(PlayerEntity playerEntity) |
private static final Logger LOGGER
private final File playerDataDir
protected final com.mojang.datafixers.DataFixer dataFixer
public WorldSaveHandler(LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer)
public void savePlayerData(PlayerEntity playerEntity)
@Nullable public CompoundTag loadPlayerData(PlayerEntity playerEntity)
public String[] getSavedPlayerIds()