Class AttributeRenameFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.AttributeRenameFix
Direct Known Subclasses:
AttributeIdPrefixFix

public class AttributeRenameFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
named net/minecraft/datafixer/fix/AttributeRenameFix
intermediary net/minecraft/class_9853
official bch
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
     
    private final UnaryOperator<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AttributeRenameFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, UnaryOperator<String> renamer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private com.mojang.datafixers.Typed<?>
    applyToComponents(com.mojang.datafixers.Typed<?> typed)
     
    private com.mojang.datafixers.Typed<?>
    applyToEntity(com.mojang.datafixers.Typed<?> typed)
     
    private com.mojang.serialization.Dynamic<?>
    applyToIdField(com.mojang.serialization.Dynamic<?> dynamic)
     
    private com.mojang.serialization.Dynamic<?>
    applyToTypeField(com.mojang.serialization.Dynamic<?> dynamic)
     
    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

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/datafixer/fix/AttributeRenameFix;name:Ljava/lang/String;
      intermediary field_52399 Lnet/minecraft/class_9853;field_52399:Ljava/lang/String;
      official a Lbch;a:Ljava/lang/String;
    • renamer

      private final UnaryOperator<String> renamer
      Mappings:
      Namespace Name Mixin selector
      named renamer Lnet/minecraft/datafixer/fix/AttributeRenameFix;renamer:Ljava/util/function/UnaryOperator;
      intermediary field_52400 Lnet/minecraft/class_9853;field_52400:Ljava/util/function/UnaryOperator;
      official b Lbch;b:Ljava/util/function/UnaryOperator;
  • Constructor Details

    • AttributeRenameFix

      public AttributeRenameFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, UnaryOperator<String> renamer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/datafixer/fix/AttributeRenameFix;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/function/UnaryOperator;)V
      intermediary <init> Lnet/minecraft/class_9853;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/function/UnaryOperator;)V
      official <init> Lbch;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/function/UnaryOperator;)V
  • Method Details

    • makeRule

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

      private com.mojang.datafixers.Typed<?> applyToComponents(com.mojang.datafixers.Typed<?> typed)
      Mappings:
      Namespace Name Mixin selector
      named applyToComponents Lnet/minecraft/datafixer/fix/AttributeRenameFix;applyToComponents(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      intermediary method_61360 Lnet/minecraft/class_9853;method_61360(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      official a Lbch;a(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
    • applyToEntity

      private com.mojang.datafixers.Typed<?> applyToEntity(com.mojang.datafixers.Typed<?> typed)
      Mappings:
      Namespace Name Mixin selector
      named applyToEntity Lnet/minecraft/datafixer/fix/AttributeRenameFix;applyToEntity(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      intermediary method_61363 Lnet/minecraft/class_9853;method_61363(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      official b Lbch;b(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
    • applyToIdField

      private com.mojang.serialization.Dynamic<?> applyToIdField(com.mojang.serialization.Dynamic<?> dynamic)
      Mappings:
      Namespace Name Mixin selector
      named applyToIdField Lnet/minecraft/datafixer/fix/AttributeRenameFix;applyToIdField(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_61361 Lnet/minecraft/class_9853;method_61361(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      official a Lbch;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • applyToTypeField

      private com.mojang.serialization.Dynamic<?> applyToTypeField(com.mojang.serialization.Dynamic<?> dynamic)
      Mappings:
      Namespace Name Mixin selector
      named applyToTypeField Lnet/minecraft/datafixer/fix/AttributeRenameFix;applyToTypeField(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_61364 Lnet/minecraft/class_9853;method_61364(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      official b Lbch;b(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;