Class ArrowPickupFix

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

public class ArrowPickupFix extends com.mojang.datafixers.DataFix
A fix that automatically renames the player byte in arrow data to pickup, if there is not any existing pickup data.

This is known as AbstractArrowPickupFix in the literal string, though this fix is not abstract.

Mappings:
Namespace Name
official akg
intermediary net/minecraft/class_5946
named net/minecraft/datafixer/fix/ArrowPickupFix
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected com.mojang.datafixers.TypeRewriteRule
     
    private com.mojang.datafixers.Typed<?>
    update(com.mojang.datafixers.Typed<?> typed)
     
    private static com.mojang.serialization.Dynamic<?>
    update(com.mojang.serialization.Dynamic<?> arrowData)
    When the pickup NBT byte of an arrow's data is absent, sets it from the arrow's player NBT byte.
    private com.mojang.datafixers.Typed<?>
    updateEntity(com.mojang.datafixers.Typed<?> typed, String choiceName, Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> updater)
     

    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
  • Constructor Details

    • ArrowPickupFix

      public ArrowPickupFix(com.mojang.datafixers.schemas.Schema outputSchema)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lakg;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      intermediary <init> Lnet/minecraft/class_5946;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      named <init> Lnet/minecraft/datafixer/fix/ArrowPickupFix;<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
    • update

      private com.mojang.datafixers.Typed<?> update(com.mojang.datafixers.Typed<?> typed)
      Mappings:
      Namespace Name Mixin selector
      official a Lakg;a(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      intermediary method_34684 Lnet/minecraft/class_5946;method_34684(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      named update Lnet/minecraft/datafixer/fix/ArrowPickupFix;update(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
    • update

      private static com.mojang.serialization.Dynamic<?> update(com.mojang.serialization.Dynamic<?> arrowData)
      When the pickup NBT byte of an arrow's data is absent, sets it from the arrow's player NBT byte.
      Mappings:
      Namespace Name Mixin selector
      official a Lakg;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_34686 Lnet/minecraft/class_5946;method_34686(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named update Lnet/minecraft/datafixer/fix/ArrowPickupFix;update(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • updateEntity

      private com.mojang.datafixers.Typed<?> updateEntity(com.mojang.datafixers.Typed<?> typed, String choiceName, Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> updater)
      Mappings:
      Namespace Name Mixin selector
      official a Lakg;a(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;
      intermediary method_34685 Lnet/minecraft/class_5946;method_34685(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;
      named updateEntity Lnet/minecraft/datafixer/fix/ArrowPickupFix;updateEntity(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;