Class LevelListData

java.lang.Object
net.minecraft.world.level.saveddata.SavedData
de.z0rdak.yawp.data.region.LevelListData

public class LevelListData extends net.minecraft.world.level.saveddata.SavedData
  • 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

    Fields
    Modifier and Type
    Field
    Description
    static com.mojang.serialization.Codec<LevelListData>
     
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    LevelListData(List<net.minecraft.resources.ResourceLocation> dims)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDimEntry(net.minecraft.resources.ResourceLocation rl)
     
    get(net.minecraft.world.level.storage.DimensionDataStorage storage, @Nullable Supplier<LevelListData> defaultSupplier)
     
    List<net.minecraft.resources.ResourceLocation>
     
    boolean
    hasDimEntry(net.minecraft.resources.ResourceLocation rl)
     
    load(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
     
    @NotNull net.minecraft.nbt.CompoundTag
    save(@NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
     

    Methods inherited from class net.minecraft.world.level.saveddata.SavedData

    isDirty, save, setDirty, setDirty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • LevelListData

      public LevelListData(List<net.minecraft.resources.ResourceLocation> dims)
    • LevelListData

      public LevelListData()
  • Method Details

    • save

      @NotNull public @NotNull net.minecraft.nbt.CompoundTag save(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Specified by:
      save in class net.minecraft.world.level.saveddata.SavedData
    • get

      public static LevelListData get(net.minecraft.world.level.storage.DimensionDataStorage storage, @Nullable @Nullable Supplier<LevelListData> defaultSupplier)
    • load

      public static LevelListData load(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
    • getLevels

      public List<net.minecraft.resources.ResourceLocation> getLevels()
    • addDimEntry

      public void addDimEntry(net.minecraft.resources.ResourceLocation rl)
    • hasDimEntry

      public boolean hasDimEntry(net.minecraft.resources.ResourceLocation rl)