Class SimpleFixes
java.lang.Object
org.quiltmc.qsl.frozenblock.misc.datafixerupper.api.SimpleFixes
Provides methods to add common
DataFixes to DataFixerBuilders.
Modified to work on Fabric
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBiomeRenameFix(@NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull String name, @NotNull Map<net.minecraft.resources.ResourceLocation, net.minecraft.resources.ResourceLocation> changes, @NotNull com.mojang.datafixers.schemas.Schema schema) Adds a biome rename fix to the builder, in case biome identifiers are changed.static voidaddBlockRenameFix(@NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull String name, @NotNull net.minecraft.resources.ResourceLocation oldId, @NotNull net.minecraft.resources.ResourceLocation newId, @NotNull com.mojang.datafixers.schemas.Schema schema) Adds a block rename fix to the builder, in case a block's identifier is changed.static voidaddBlockStateRenameFix(@NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull String name, @NotNull net.minecraft.resources.ResourceLocation blockId, @NotNull String oldState, @NotNull String defaultValue, @NotNull String newState, @NotNull com.mojang.datafixers.schemas.Schema schema) Adds a blockstate rename fix to the builder, in case a blockstate's name is changed.static voidaddEntityRenameFix(@NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull String name, @NotNull net.minecraft.resources.ResourceLocation oldId, @NotNull net.minecraft.resources.ResourceLocation newId, @NotNull com.mojang.datafixers.schemas.Schema schema) Adds an entity rename fix to the builder, in case an entity's identifier is changed.static voidaddItemRenameFix(@NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull String name, @NotNull net.minecraft.resources.ResourceLocation oldId, @NotNull net.minecraft.resources.ResourceLocation newId, @NotNull com.mojang.datafixers.schemas.Schema schema) Adds an item rename fix to the builder, in case an item's identifier is changed.
-
Method Details
-
addBlockRenameFix
public static void addBlockRenameFix(@NotNull @NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull @NotNull String name, @NotNull @NotNull net.minecraft.resources.ResourceLocation oldId, @NotNull @NotNull net.minecraft.resources.ResourceLocation newId, @NotNull @NotNull com.mojang.datafixers.schemas.Schema schema) Adds a block rename fix to the builder, in case a block's identifier is changed.- Parameters:
builder- the buildername- the fix's nameoldId- the block's old identifiernewId- the block's new identifierschema- the schema this fixer should be a part of- See Also:
-
BlockRenameFix
-
addEntityRenameFix
public static void addEntityRenameFix(@NotNull @NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull @NotNull String name, @NotNull @NotNull net.minecraft.resources.ResourceLocation oldId, @NotNull @NotNull net.minecraft.resources.ResourceLocation newId, @NotNull @NotNull com.mojang.datafixers.schemas.Schema schema) Adds an entity rename fix to the builder, in case an entity's identifier is changed.- Parameters:
builder- the buildername- the fix's nameoldId- the entity's old identifiernewId- the entity's new identifierschema- the schema this fix should be a part of- See Also:
-
SimplestEntityRenameFix
-
addItemRenameFix
public static void addItemRenameFix(@NotNull @NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull @NotNull String name, @NotNull @NotNull net.minecraft.resources.ResourceLocation oldId, @NotNull @NotNull net.minecraft.resources.ResourceLocation newId, @NotNull @NotNull com.mojang.datafixers.schemas.Schema schema) Adds an item rename fix to the builder, in case an item's identifier is changed.- Parameters:
builder- the buildername- the fix's nameoldId- the item's old identifiernewId- the item's new identifierschema- the schema this fix should be a part of- See Also:
-
ItemRenameFix
-
addBlockStateRenameFix
public static void addBlockStateRenameFix(@NotNull @NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull @NotNull String name, @NotNull @NotNull net.minecraft.resources.ResourceLocation blockId, @NotNull @NotNull String oldState, @NotNull @NotNull String defaultValue, @NotNull @NotNull String newState, @NotNull @NotNull com.mojang.datafixers.schemas.Schema schema) Adds a blockstate rename fix to the builder, in case a blockstate's name is changed.- Parameters:
builder- the buildername- the fix's nameblockId- the block's identifieroldState- the blockstate's old namedefaultValue- the blockstate's default valuenewState- the blockstates's new nameschema- the schema this fixer should be a part of- See Also:
-
addBiomeRenameFix
public static void addBiomeRenameFix(@NotNull @NotNull com.mojang.datafixers.DataFixerBuilder builder, @NotNull @NotNull String name, @NotNull @NotNull Map<net.minecraft.resources.ResourceLocation, net.minecraft.resources.ResourceLocation> changes, @NotNull @NotNull com.mojang.datafixers.schemas.Schema schema) Adds a biome rename fix to the builder, in case biome identifiers are changed.- Parameters:
builder- the buildername- the fix's namechanges- a map of old biome identifiers to new biome identifiersschema- the schema this fixer should be a part of- See Also:
-
NamespacedTypeRenameFix
-