Class QuiltDataFixesInternals
java.lang.Object
org.quiltmc.qsl.frozenblock.misc.datafixerupper.impl.QuiltDataFixesInternals
- Direct Known Subclasses:
NoOpQuiltDataFixesInternals,QuiltDataFixesInternalsImpl
Modified to work on Fabric
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @NotNull net.minecraft.nbt.CompoundTagaddModDataVersions(@NotNull net.minecraft.nbt.CompoundTag compound) abstract @NotNull com.mojang.datafixers.schemas.Schemaabstract voidfreeze()static @NotNull QuiltDataFixesInternalsget()abstract @Nullable QuiltDataFixesInternals.DataFixerEntrygetFixerEntry(@NotNull String modId) abstract @Nullable QuiltDataFixesInternals.DataFixerEntrygetMinecraftFixerEntry(@NotNull String modId) static @Range(from=0L,to=2147483647L) OptionalIntgetModDataVersion(@NotNull net.minecraft.nbt.CompoundTag compound, @NotNull String modId) static @Range(from=0L,to=2147483647L) OptionalIntgetModMinecraftDataVersion(@NotNull net.minecraft.nbt.CompoundTag compound, @NotNull String modId) abstract booleanisEmpty()abstract booleanisFrozen()abstract voidregisterFixer(@NotNull String modId, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int currentVersion, @NotNull com.mojang.datafixers.DataFixer dataFixer) abstract voidregisterMinecraftFixer(@NotNull String modId, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int currentVersion, @NotNull com.mojang.datafixers.DataFixer dataFixer) abstract @NotNull com.mojang.serialization.Dynamic<net.minecraft.nbt.Tag> updateWithAllFixers(@NotNull net.minecraft.util.datafix.DataFixTypes dataFixTypes, @NotNull com.mojang.serialization.Dynamic<net.minecraft.nbt.Tag> dynamic)
-
Constructor Details
-
QuiltDataFixesInternals
public QuiltDataFixesInternals()
-
-
Method Details
-
getModDataVersion
@Contract(pure=true) public static @Range(from=0L,to=2147483647L) OptionalInt getModDataVersion(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound, @NotNull @NotNull String modId) -
getModMinecraftDataVersion
@Contract(pure=true) public static @Range(from=0L,to=2147483647L) OptionalInt getModMinecraftDataVersion(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound, @NotNull @NotNull String modId) -
get
-
registerFixer
public abstract void registerFixer(@NotNull @NotNull String modId, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int currentVersion, @NotNull @NotNull com.mojang.datafixers.DataFixer dataFixer) -
isEmpty
public abstract boolean isEmpty() -
getFixerEntry
@Nullable public abstract @Nullable QuiltDataFixesInternals.DataFixerEntry getFixerEntry(@NotNull @NotNull String modId) -
registerMinecraftFixer
public abstract void registerMinecraftFixer(@NotNull @NotNull String modId, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int currentVersion, @NotNull @NotNull com.mojang.datafixers.DataFixer dataFixer) -
getMinecraftFixerEntry
@Nullable public abstract @Nullable QuiltDataFixesInternals.DataFixerEntry getMinecraftFixerEntry(@NotNull @NotNull String modId) -
createBaseSchema
@Contract(value="-> new", pure=true) @NotNull public abstract @NotNull com.mojang.datafixers.schemas.Schema createBaseSchema() -
updateWithAllFixers
@NotNull public abstract @NotNull com.mojang.serialization.Dynamic<net.minecraft.nbt.Tag> updateWithAllFixers(@NotNull @NotNull net.minecraft.util.datafix.DataFixTypes dataFixTypes, @NotNull @NotNull com.mojang.serialization.Dynamic<net.minecraft.nbt.Tag> dynamic) -
addModDataVersions
@NotNull public abstract @NotNull net.minecraft.nbt.CompoundTag addModDataVersions(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound) -
freeze
public abstract void freeze() -
isFrozen
@Contract(pure=true) public abstract boolean isFrozen()
-