Class ComponentFix

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

public abstract class ComponentFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
named net/minecraft/datafixer/fix/ComponentFix
intermediary net/minecraft/class_9342
official bem
  • Field Summary

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

    Constructors
    Constructor
    Description
    ComponentFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, String componentId)
     
    ComponentFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, String oldComponentId, String newComponentId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract <T> com.mojang.serialization.Dynamic<T>
    fixComponent(com.mojang.serialization.Dynamic<T> dynamic)
     
    final 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/ComponentFix;name:Ljava/lang/String;
      intermediary field_49714 Lnet/minecraft/class_9342;field_49714:Ljava/lang/String;
      official a Lbem;a:Ljava/lang/String;
    • oldComponentId

      private final String oldComponentId
      Mappings:
      Namespace Name Mixin selector
      named oldComponentId Lnet/minecraft/datafixer/fix/ComponentFix;oldComponentId:Ljava/lang/String;
      intermediary field_49715 Lnet/minecraft/class_9342;field_49715:Ljava/lang/String;
      official b Lbem;b:Ljava/lang/String;
    • newComponentId

      private final String newComponentId
      Mappings:
      Namespace Name Mixin selector
      named newComponentId Lnet/minecraft/datafixer/fix/ComponentFix;newComponentId:Ljava/lang/String;
      intermediary field_49716 Lnet/minecraft/class_9342;field_49716:Ljava/lang/String;
      official c Lbem;c:Ljava/lang/String;
  • Constructor Details

    • ComponentFix

      public ComponentFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, String componentId)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/datafixer/fix/ComponentFix;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_9342;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/lang/String;)V
      official <init> Lbem;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/lang/String;)V
    • ComponentFix

      public ComponentFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, String oldComponentId, String newComponentId)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/datafixer/fix/ComponentFix;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_9342;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
      official <init> Lbem;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
  • Method Details

    • makeRule

      public final com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • fixComponent

      protected abstract <T> com.mojang.serialization.Dynamic<T> fixComponent(com.mojang.serialization.Dynamic<T> dynamic)
      Mappings:
      Namespace Name Mixin selector
      named fixComponent Lnet/minecraft/datafixer/fix/ComponentFix;fixComponent(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_58045 Lnet/minecraft/class_9342;method_58045(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      official a Lbem;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;