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.
  • Field Details

    • storageMap

      protected Map<net.minecraft.core.BlockPos,WorldStorage> storageMap
  • Constructor Details

    • ImmersiveMCLevelStorage

      public ImmersiveMCLevelStorage()
  • Method Details

    • getLevelStorage

      public static ImmersiveMCLevelStorage getLevelStorage(net.minecraft.server.level.ServerLevel level)
    • remove

      @Nullable public @Nullable WorldStorage remove(net.minecraft.core.BlockPos pos)
    • 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

      public static List<BookData> getAllBookDatas(net.minecraft.server.MinecraftServer server)
    • unmarkAllItemStoragesDirty

      public static void unmarkAllItemStoragesDirty(net.minecraft.server.MinecraftServer server)
    • load

      public static ImmersiveMCLevelStorage load(net.minecraft.nbt.CompoundTag nbt)
    • save

      public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      save in class net.minecraft.world.level.saveddata.SavedData