Package de.z0rdak.yawp.data.region
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<LevelListData>static final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDimEntry(net.minecraft.resources.ResourceLocation rl) static LevelListDataget(net.minecraft.world.level.storage.DimensionDataStorage storage, @Nullable Supplier<LevelListData> defaultSupplier) List<net.minecraft.resources.ResourceLocation>booleanhasDimEntry(net.minecraft.resources.ResourceLocation rl) static LevelListDataload(net.minecraft.nbt.CompoundTag tag) @NotNull net.minecraft.nbt.CompoundTagsave(@NotNull net.minecraft.nbt.CompoundTag tag) Methods inherited from class net.minecraft.world.level.saveddata.SavedData
isDirty, save, setDirty, setDirty
-
Field Details
-
DIMENSIONS_FILE_NAME
- See Also:
-
CODEC
-
TYPE
-
-
Constructor Details
-
LevelListData
-
LevelListData
public LevelListData()
-
-
Method Details
-
save
@NotNull public @NotNull net.minecraft.nbt.CompoundTag save(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Specified by:
savein classnet.minecraft.world.level.saveddata.SavedData
-
get
public static LevelListData get(net.minecraft.world.level.storage.DimensionDataStorage storage, @Nullable @Nullable Supplier<LevelListData> defaultSupplier) -
load
-
getLevels
-
addDimEntry
public void addDimEntry(net.minecraft.resources.ResourceLocation rl) -
hasDimEntry
public boolean hasDimEntry(net.minecraft.resources.ResourceLocation rl)
-