Class ImmersiveMCLevelStorage
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
com.hammy275.immersivemc.server.storage.world.ImmersiveMCLevelStorage
public class ImmersiveMCLevelStorage
extends net.minecraft.world.level.saveddata.SavedData
Holds ALL the save data for ImmersiveMC for a given world/dimension.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.saveddata.SavedData
net.minecraft.world.level.saveddata.SavedData.Factory<T extends net.minecraft.world.level.saveddata.SavedData>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable WorldStorage
get
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) getAllBookDatas
(net.minecraft.server.MinecraftServer server) static ImmersiveMCLevelStorage
getLevelStorage
(net.minecraft.server.level.ServerLevel level) @Nullable WorldStorage
getOrCreate
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) @Nullable WorldStorage
getWithoutVerification
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) static ImmersiveMCLevelStorage
load
(net.minecraft.nbt.CompoundTag nbt) @Nullable WorldStorage
remove
(net.minecraft.core.BlockPos pos) net.minecraft.nbt.CompoundTag
save
(net.minecraft.nbt.CompoundTag nbt) static void
unmarkAllItemStoragesDirty
(net.minecraft.server.MinecraftServer server) Methods inherited from class net.minecraft.world.level.saveddata.SavedData
isDirty, save, setDirty, setDirty
-
Field Details
-
storageMap
-
-
Constructor Details
-
ImmersiveMCLevelStorage
public ImmersiveMCLevelStorage()
-
-
Method Details
-
getLevelStorage
-
remove
-
get
@Nullable public @Nullable WorldStorage get(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) -
getWithoutVerification
@Nullable public @Nullable WorldStorage getWithoutVerification(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) -
getOrCreate
@Nullable public @Nullable WorldStorage getOrCreate(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level) -
getAllBookDatas
-
unmarkAllItemStoragesDirty
public static void unmarkAllItemStoragesDirty(net.minecraft.server.MinecraftServer server) -
load
-
save
public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag nbt) - Specified by:
save
in classnet.minecraft.world.level.saveddata.SavedData
-