net.minecraft.world.level.storage

public class DimensionDataStorage

implements AutoCloseable

evx
net.minecraft.world.level.storage.DimensionDataStorage
net.minecraft.class_26
net.minecraft.world.PersistentStateManager
net.minecraft.world.level.storage.WorldPersistentData

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_136
LOGGER
private final Map<String, Optional<SavedData>>
b
cache
field_134
loadedStates
private final com.mojang.datafixers.DataFixer
c
fixerUpper
field_17663
dataFixer
private final HolderLookup$Provider
d
registries
field_48926
registries
private final Path
e
dataFolder
field_17664
directory
private CompletableFuture<?>
f
pendingWriteFuture
field_52688
savingFuture

Constructor summary

ModifierConstructor
public (Path directory, com.mojang.datafixers.DataFixer dataFixer, HolderLookup$Provider registries)

Method summary

Modifier and TypeMethod
private Path
a(String arg0)
getDataFile(String arg0)
method_17922(String arg0)
getFile(String id)
public <T extends SavedData> T
a(evj$a<T> arg0, String arg1)
computeIfAbsent(SavedData$Factory<T> arg0, String arg1)
method_17924(class_18$class_8645<T> arg0, String arg1)
getOrCreate(PersistentState$Type<T> type, String id)
public <T extends SavedData> T
b(evj$a<T> arg0, String arg1)
get(SavedData$Factory<T> arg0, String arg1)
method_20786(class_18$class_8645<T> arg0, String arg1)
get(PersistentState$Type<T> type, String id)
private <T extends SavedData> T
a(BiFunction<ux, js$a, T> arg0, bbs arg1, String arg2)
readSavedData(BiFunction<CompoundTag, HolderLookup$Provider, T> arg0, DataFixTypes arg1, String arg2)
method_120(BiFunction<class_2487, class_7225$class_7874, T> arg0, class_4284 arg1, String arg2)
readFromFile(BiFunction<NbtCompound, RegistryWrapper$WrapperLookup, T> readFunction, DataFixTypes dataFixTypes, String id)
public void
a(String arg0, evj arg1)
set(String arg0, SavedData arg1)
method_123(String arg0, class_18 arg1)
set(String id, PersistentState state)
public CompoundTag
a(String arg0, bbs arg1, int arg2)
readTagFromDisk(String arg0, DataFixTypes arg1, int arg2)
method_17923(String arg0, class_4284 arg1, int arg2)
readNbt(String id, DataFixTypes dataFixTypes, int currentSaveVersion)
private boolean
a(PushbackInputStream arg0)
isGzip(PushbackInputStream arg0)
method_17921(PushbackInputStream arg0)
isCompressed(PushbackInputStream stream)
public CompletableFuture<?>
a()
scheduleSave()
method_61873()
startSaving()
private Map<Path, CompoundTag>
c()
collectDirtyTagsToSave()
method_61881()
collectStatesToSave()
private static CompletableFuture<Void>
a(Path arg0, ux arg1)
tryWriteAsync(Path arg0, CompoundTag arg1)
method_61875(Path arg0, class_2487 arg1)
save(Path path, NbtCompound nbt)
public void
b()
saveAndJoin()
method_125()
save()
public void
close()
close()