public class DimensionSavedDataManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private com.mojang.datafixers.DataFixer |
dataFixer |
private java.io.File |
folder |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Map<java.lang.String,WorldSavedData> |
savedDatum |
Constructor and Description |
---|
DimensionSavedDataManager(java.io.File dataFolder,
com.mojang.datafixers.DataFixer dataFixerIn) |
Modifier and Type | Method and Description |
---|---|
private <T extends WorldSavedData> |
func_223409_c(java.util.function.Supplier<T> p_223409_1_,
java.lang.String p_223409_2_) |
<T extends WorldSavedData> |
get(java.util.function.Supplier<T> defaultSupplier,
java.lang.String name) |
private java.io.File |
getDataFile(java.lang.String name) |
<T extends WorldSavedData> |
getOrCreate(java.util.function.Supplier<T> defaultSupplier,
java.lang.String name) |
private boolean |
isCompressed(java.io.PushbackInputStream inputStream) |
CompoundNBT |
load(java.lang.String name,
int worldVersion) |
void |
save() |
void |
set(WorldSavedData data) |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.util.Map<java.lang.String,WorldSavedData> savedDatum
private final com.mojang.datafixers.DataFixer dataFixer
private final java.io.File folder
public DimensionSavedDataManager(java.io.File dataFolder, com.mojang.datafixers.DataFixer dataFixerIn)
private java.io.File getDataFile(java.lang.String name)
public <T extends WorldSavedData> T getOrCreate(java.util.function.Supplier<T> defaultSupplier, java.lang.String name)
@Nullable public <T extends WorldSavedData> T get(java.util.function.Supplier<T> defaultSupplier, java.lang.String name)
@Nullable private <T extends WorldSavedData> T func_223409_c(java.util.function.Supplier<T> p_223409_1_, java.lang.String p_223409_2_)
public void set(WorldSavedData data)
public CompoundNBT load(java.lang.String name, int worldVersion) throws java.io.IOException
java.io.IOException
private boolean isCompressed(java.io.PushbackInputStream inputStream) throws java.io.IOException
java.io.IOException
public void save()