Class ProjectileItemTypeFix

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

public class ProjectileItemTypeFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
named net/minecraft/datafixer/fix/ProjectileItemTypeFix
intermediary net/minecraft/class_8918
official bee
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static interface 
     
  • Field Summary

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

    Constructors
    Constructor
    Description
    ProjectileItemTypeFix(com.mojang.datafixers.schemas.Schema outputSchema)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private <T> Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>>
    applyFixers(Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>>[] fixAppliers)
     
    private Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>>
     
    private static <T> Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>>
    createFixApplier(String id, ProjectileItemTypeFix.Fixer<?> fixer, com.mojang.datafixers.types.Type<?> inputType, com.mojang.datafixers.types.Type<T> outputType)
     
    private static com.mojang.serialization.Dynamic<?>
    createStack(com.mojang.serialization.Dynamic<?> projectileData, String id)
     
    private static <T> com.mojang.datafixers.Typed<T>
    fixArrow(com.mojang.datafixers.Typed<?> typed, com.mojang.datafixers.types.Type<T> type)
     
    private static <T> com.mojang.datafixers.Typed<T>
    fixSpectralArrow(com.mojang.datafixers.Typed<?> typed, com.mojang.datafixers.types.Type<T> type)
     
    private static <T> com.mojang.datafixers.Typed<T>
    fixTrident(com.mojang.datafixers.Typed<?> typed, com.mojang.datafixers.types.Type<T> type)
     
    private static String
    getArrowId(com.mojang.serialization.Dynamic<?> arrowData)
     
    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

    • EMPTY_ID

      private static final String EMPTY_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named EMPTY_ID Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;EMPTY_ID:Ljava/lang/String;
      intermediary field_46959 Lnet/minecraft/class_8918;field_46959:Ljava/lang/String;
      official a Lbee;a:Ljava/lang/String;
  • Constructor Details

    • ProjectileItemTypeFix

      public ProjectileItemTypeFix(com.mojang.datafixers.schemas.Schema outputSchema)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      intermediary <init> Lnet/minecraft/class_8918;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      official <init> Lbee;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
  • Method Details

    • makeRule

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

      @SafeVarargs private <T> Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> applyFixers(Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>>[] fixAppliers)
      Mappings:
      Namespace Name Mixin selector
      named applyFixers Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;applyFixers([Ljava/util/function/Function;)Ljava/util/function/Function;
      intermediary method_54735 Lnet/minecraft/class_8918;method_54735([Ljava/util/function/Function;)Ljava/util/function/Function;
      official a Lbee;a([Ljava/util/function/Function;)Ljava/util/function/Function;
    • createFixApplier

      private Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> createFixApplier(String id, ProjectileItemTypeFix.Fixer<?> fixer)
      Mappings:
      Namespace Name Mixin selector
      named createFixApplier Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;createFixApplier(Ljava/lang/String;Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix$Fixer;)Ljava/util/function/Function;
      intermediary method_54733 Lnet/minecraft/class_8918;method_54733(Ljava/lang/String;Lnet/minecraft/class_8918$class_8919;)Ljava/util/function/Function;
      official a Lbee;a(Ljava/lang/String;Lbee$a;)Ljava/util/function/Function;
    • createFixApplier

      private static <T> Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> createFixApplier(String id, ProjectileItemTypeFix.Fixer<?> fixer, com.mojang.datafixers.types.Type<?> inputType, com.mojang.datafixers.types.Type<T> outputType)
      Mappings:
      Namespace Name Mixin selector
      named createFixApplier Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;createFixApplier(Ljava/lang/String;Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix$Fixer;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Ljava/util/function/Function;
      intermediary method_54734 Lnet/minecraft/class_8918;method_54734(Ljava/lang/String;Lnet/minecraft/class_8918$class_8919;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Ljava/util/function/Function;
      official a Lbee;a(Ljava/lang/String;Lbee$a;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Ljava/util/function/Function;
    • fixArrow

      private static <T> com.mojang.datafixers.Typed<T> fixArrow(com.mojang.datafixers.Typed<?> typed, com.mojang.datafixers.types.Type<T> type)
      Mappings:
      Namespace Name Mixin selector
      named fixArrow Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;fixArrow(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/Typed;
      intermediary method_54729 Lnet/minecraft/class_8918;method_54729(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/Typed;
      official a Lbee;a(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/Typed;
    • getArrowId

      private static String getArrowId(com.mojang.serialization.Dynamic<?> arrowData)
      Mappings:
      Namespace Name Mixin selector
      named getArrowId Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;getArrowId(Lcom/mojang/serialization/Dynamic;)Ljava/lang/String;
      intermediary method_54730 Lnet/minecraft/class_8918;method_54730(Lcom/mojang/serialization/Dynamic;)Ljava/lang/String;
      official a Lbee;a(Lcom/mojang/serialization/Dynamic;)Ljava/lang/String;
    • fixSpectralArrow

      private static <T> com.mojang.datafixers.Typed<T> fixSpectralArrow(com.mojang.datafixers.Typed<?> typed, com.mojang.datafixers.types.Type<T> type)
      Mappings:
      Namespace Name Mixin selector
      named fixSpectralArrow Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;fixSpectralArrow(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/Typed;
      intermediary method_54737 Lnet/minecraft/class_8918;method_54737(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/Typed;
      official b Lbee;b(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/Typed;
    • createStack

      private static com.mojang.serialization.Dynamic<?> createStack(com.mojang.serialization.Dynamic<?> projectileData, String id)
      Mappings:
      Namespace Name Mixin selector
      named createStack Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;createStack(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      intermediary method_54731 Lnet/minecraft/class_8918;method_54731(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      official a Lbee;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
    • fixTrident

      private static <T> com.mojang.datafixers.Typed<T> fixTrident(com.mojang.datafixers.Typed<?> typed, com.mojang.datafixers.types.Type<T> type)
      Mappings:
      Namespace Name Mixin selector
      named fixTrident Lnet/minecraft/datafixer/fix/ProjectileItemTypeFix;fixTrident(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/Typed;
      intermediary method_54740 Lnet/minecraft/class_8918;method_54740(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/Typed;
      official c Lbee;c(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/Typed;