Class RenameEnchantmentFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.RenameEnchantmentFix

public class RenameEnchantmentFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
named net/minecraft/datafixer/fix/RenameEnchantmentFix
intermediary net/minecraft/class_9106
official bhb
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final String
     
    (package private) final Map<String,String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RenameEnchantmentFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, Map<String,String> oldToNewIds)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private com.mojang.serialization.Dynamic<?>
    fixIds(com.mojang.serialization.Dynamic<?> data)
     
    private com.mojang.serialization.Dynamic<?>
    fixIds(com.mojang.serialization.Dynamic<?> data, String key)
     
    protected com.mojang.datafixers.TypeRewriteRule
     

    Methods inherited from class com.mojang.datafixers.DataFix

    checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/datafixer/fix/RenameEnchantmentFix;name:Ljava/lang/String;
      intermediary field_48315 Lnet/minecraft/class_9106;field_48315:Ljava/lang/String;
      official a Lbhb;a:Ljava/lang/String;
    • oldToNewIds

      final Map<String,String> oldToNewIds
      Mappings:
      Namespace Name Mixin selector
      named oldToNewIds Lnet/minecraft/datafixer/fix/RenameEnchantmentFix;oldToNewIds:Ljava/util/Map;
      intermediary field_48316 Lnet/minecraft/class_9106;field_48316:Ljava/util/Map;
      official b Lbhb;b:Ljava/util/Map;
  • Constructor Details

    • RenameEnchantmentFix

      public RenameEnchantmentFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, Map<String,String> oldToNewIds)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/datafixer/fix/RenameEnchantmentFix;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_9106;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/Map;)V
      official <init> Lbhb;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/Map;)V
  • Method Details

    • makeRule

      protected com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • fixIds

      private com.mojang.serialization.Dynamic<?> fixIds(com.mojang.serialization.Dynamic<?> data)
      Mappings:
      Namespace Name Mixin selector
      named fixIds Lnet/minecraft/datafixer/fix/RenameEnchantmentFix;fixIds(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_56057 Lnet/minecraft/class_9106;method_56057(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      official a Lbhb;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixIds

      private com.mojang.serialization.Dynamic<?> fixIds(com.mojang.serialization.Dynamic<?> data, String key)
      Mappings:
      Namespace Name Mixin selector
      named fixIds Lnet/minecraft/datafixer/fix/RenameEnchantmentFix;fixIds(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      intermediary method_56060 Lnet/minecraft/class_9106;method_56060(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      official a Lbhb;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;