Package at.petrak.hexcasting.server
Class ScrungledPatternsSave
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
at.petrak.hexcasting.server.ScrungledPatternsSave
public class ScrungledPatternsSave
extends net.minecraft.world.level.saveddata.SavedData
Maps angle sigs to resource locations and their preferred start dir so we can look them up in the main registry
Save this on the world in case the random algorithm changes.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ScrungledPatternsSavecreateFromScratch(long seed) @Nullable ScrungledPatternsSave.PerWorldEntry@Nullable com.mojang.datafixers.util.Pair<String,ScrungledPatternsSave.PerWorldEntry> lookupReverse(net.minecraft.resources.ResourceKey<ActionRegistryEntry> key) static ScrungledPatternsSaveopen(net.minecraft.server.level.ServerLevel overworld) net.minecraft.nbt.CompoundTagsave(net.minecraft.nbt.CompoundTag tag) Methods inherited from class net.minecraft.world.level.saveddata.SavedData
isDirty, save, setDirty, setDirty
-
Field Details
-
DATA_VERSION
- See Also:
-
TAG_SAVED_DATA
- See Also:
-
-
Method Details
-
lookup
-
lookupReverse
@Nullable public @Nullable com.mojang.datafixers.util.Pair<String,ScrungledPatternsSave.PerWorldEntry> lookupReverse(net.minecraft.resources.ResourceKey<ActionRegistryEntry> key) -
save
public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag tag) - Specified by:
savein classnet.minecraft.world.level.saveddata.SavedData
-
createFromScratch
-
open
-