Class ItemNbtFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ItemNbtFix
Direct Known Subclasses:
GoatHornIdFix, OminousBannerItemRenameFix, RemoveFilteredBookTextFix

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

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

    Constructors
    Constructor
    Description
    ItemNbtFix(com.mojang.datafixers.schemas.Schema schema, String name, Predicate<String> itemIdPredicate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract <T> com.mojang.serialization.Dynamic<T>
    fixNbt(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
      official a Laql;a:Ljava/lang/String;
      intermediary field_39403 Lnet/minecraft/class_7505;field_39403:Ljava/lang/String;
      named name Lnet/minecraft/datafixer/fix/ItemNbtFix;name:Ljava/lang/String;
    • itemIdPredicate

      private final Predicate<String> itemIdPredicate
      Mappings:
      Namespace Name Mixin selector
      official b Laql;b:Ljava/util/function/Predicate;
      intermediary field_39404 Lnet/minecraft/class_7505;field_39404:Ljava/util/function/Predicate;
      named itemIdPredicate Lnet/minecraft/datafixer/fix/ItemNbtFix;itemIdPredicate:Ljava/util/function/Predicate;
  • Constructor Details

    • ItemNbtFix

      public ItemNbtFix(com.mojang.datafixers.schemas.Schema schema, String name, Predicate<String> itemIdPredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laql;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_7505;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/function/Predicate;)V
      named <init> Lnet/minecraft/datafixer/fix/ItemNbtFix;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;Ljava/util/function/Predicate;)V
  • Method Details

    • makeRule

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

      protected abstract <T> com.mojang.serialization.Dynamic<T> fixNbt(com.mojang.serialization.Dynamic<T> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official a Laql;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_20445 Lnet/minecraft/class_7505;method_20445(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixNbt Lnet/minecraft/datafixer/fix/ItemNbtFix;fixNbt(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;