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
named net/minecraft/datafixer/fix/ItemNbtFix
intermediary net/minecraft/class_7505
official bgv
  • 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 outputSchema, String name, Predicate<String> itemIdPredicate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static UnaryOperator<com.mojang.datafixers.Typed<?>>
    fixNbt(com.mojang.datafixers.types.Type<?> itemStackType, Predicate<String> itemIdPredicate, UnaryOperator<com.mojang.serialization.Dynamic<?>> nbtFixer)
     
    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
      named name Lnet/minecraft/datafixer/fix/ItemNbtFix;name:Ljava/lang/String;
      intermediary field_39403 Lnet/minecraft/class_7505;field_39403:Ljava/lang/String;
      official a Lbgv;a:Ljava/lang/String;
    • itemIdPredicate

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

    • ItemNbtFix

      public ItemNbtFix(com.mojang.datafixers.schemas.Schema outputSchema, String name, Predicate<String> itemIdPredicate)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/datafixer/fix/ItemNbtFix;<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
      official <init> Lbgv;<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

      public static UnaryOperator<com.mojang.datafixers.Typed<?>> fixNbt(com.mojang.datafixers.types.Type<?> itemStackType, Predicate<String> itemIdPredicate, UnaryOperator<com.mojang.serialization.Dynamic<?>> nbtFixer)
      Mappings:
      Namespace Name Mixin selector
      named fixNbt Lnet/minecraft/datafixer/fix/ItemNbtFix;fixNbt(Lcom/mojang/datafixers/types/Type;Ljava/util/function/Predicate;Ljava/util/function/UnaryOperator;)Ljava/util/function/UnaryOperator;
      intermediary method_56971 Lnet/minecraft/class_7505;method_56971(Lcom/mojang/datafixers/types/Type;Ljava/util/function/Predicate;Ljava/util/function/UnaryOperator;)Ljava/util/function/UnaryOperator;
      official a Lbgv;a(Lcom/mojang/datafixers/types/Type;Ljava/util/function/Predicate;Ljava/util/function/UnaryOperator;)Ljava/util/function/UnaryOperator;
    • fixNbt

      protected abstract <T> com.mojang.serialization.Dynamic<T> fixNbt(com.mojang.serialization.Dynamic<T> dynamic)
      Mappings:
      Namespace Name Mixin selector
      named fixNbt Lnet/minecraft/datafixer/fix/ItemNbtFix;fixNbt(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;
      official a Lbgv;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;