Package net.minecraft.datafixer.fix
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 named net/minecraft/datafixer/fix/ArrowPickupFix
intermediary net/minecraft/class_5946
official baa
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.datafixers.TypeRewriteRule
makeRule()
private com.mojang.datafixers.Typed
<?> update
(com.mojang.datafixers.Typed<?> typed) private static com.mojang.serialization.Dynamic
<?> update
(com.mojang.serialization.Dynamic<?> arrowData) When thepickup
NBT byte of an arrow's data is absent, sets it from the arrow'splayer
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
-
Constructor Details
-
ArrowPickupFix
public ArrowPickupFix(com.mojang.datafixers.schemas.Schema outputSchema) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/datafixer/fix/ArrowPickupFix;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
intermediary <init>
Lnet/minecraft/class_5946;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
official <init>
Lbaa;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
-
-
Method Details
-
makeRule
protected com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRule
in classcom.mojang.datafixers.DataFix
-
update
private com.mojang.datafixers.Typed<?> update(com.mojang.datafixers.Typed<?> typed) - Mappings:
Namespace Name Mixin selector named update
Lnet/minecraft/datafixer/fix/ArrowPickupFix;update(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;
official a
Lbaa;a(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
-
update
private static com.mojang.serialization.Dynamic<?> update(com.mojang.serialization.Dynamic<?> arrowData) When thepickup
NBT byte of an arrow's data is absent, sets it from the arrow'splayer
NBT byte.- Mappings:
Namespace Name Mixin selector named update
Lnet/minecraft/datafixer/fix/ArrowPickupFix;update(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;
official a
Lbaa;a(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 named updateEntity
Lnet/minecraft/datafixer/fix/ArrowPickupFix;updateEntity(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;
official a
Lbaa;a(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;
-