java.lang.Object
org.quiltmc.qsl.frozenblock.misc.datafixerupper.api.SimpleFixes

public final class SimpleFixes extends Object
Provides methods to add common DataFixes to DataFixerBuilders.

Modified to work on Fabric

  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addBiomeRenameFix(@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 void
    addBlockRenameFix(@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 void
    addBlockStateRenameFix(@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 void
    addEntityRenameFix(@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 void
    addItemRenameFix(@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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 builder
      name - the fix's name
      oldId - the block's old identifier
      newId - the block's new identifier
      schema - 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 builder
      name - the fix's name
      oldId - the entity's old identifier
      newId - the entity's new identifier
      schema - 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 builder
      name - the fix's name
      oldId - the item's old identifier
      newId - the item's new identifier
      schema - 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 builder
      name - the fix's name
      blockId - the block's identifier
      oldState - the blockstate's old name
      defaultValue - the blockstate's default value
      newState - the blockstates's new name
      schema - 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 builder
      name - the fix's name
      changes - a map of old biome identifiers to new biome identifiers
      schema - the schema this fixer should be a part of
      See Also:
      • NamespacedTypeRenameFix