Package net.minecraft.loot.function
Record Class CopyNbtLootFunction.Operation
java.lang.Object
java.lang.Record
net.minecraft.loot.function.CopyNbtLootFunction.Operation
- Record Components:
- parsedSourcePath-
- parsedTargetPath-
- operator-
- Enclosing class:
- CopyNbtLootFunction
private static record CopyNbtLootFunction.Operation(NbtPathArgumentType.NbtPath parsedSourcePath, NbtPathArgumentType.NbtPath parsedTargetPath, CopyNbtLootFunction.Operator operator)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/loot/function/CopyNbtLootFunction$Operation- intermediary - net/minecraft/class_3837$class_3839- official - ewt$b- named - parsedSourcePath- intermediary - comp_1853- official - b- named - parsedTargetPath- intermediary - comp_1854- official - c- named - operator- intermediary - comp_1855- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CopyNbtLootFunction.Operation> private final CopyNbtLootFunction.OperatorThe field for theoperatorrecord component.private final NbtPathArgumentType.NbtPathThe field for theparsedSourcePathrecord component.private final NbtPathArgumentType.NbtPathThe field for theparsedTargetPathrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionOperation(NbtPathArgumentType.NbtPath nbtPath, NbtPathArgumentType.NbtPath nbtPath2, CopyNbtLootFunction.Operator operator) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidexecute(Supplier<NbtElement> itemNbtGetter, NbtElement sourceEntityNbt) final inthashCode()Returns a hash code value for this object.operator()Returns the value of theoperatorrecord component.Returns the value of theparsedSourcePathrecord component.Returns the value of theparsedTargetPathrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
parsedSourcePathThe field for theparsedSourcePathrecord component.
- 
parsedTargetPathThe field for theparsedTargetPathrecord component.
- 
operatorThe field for theoperatorrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/function/CopyNbtLootFunction$Operation;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45820- Lnet/minecraft/class_3837$class_3839;field_45820:Lcom/mojang/serialization/Codec;- official - a- Lewt$b;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
OperationOperation(NbtPathArgumentType.NbtPath nbtPath, NbtPathArgumentType.NbtPath nbtPath2, CopyNbtLootFunction.Operator operator) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/loot/function/CopyNbtLootFunction$Operation;<init>(Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;)V- intermediary - <init>- Lnet/minecraft/class_3837$class_3839;<init>(Lnet/minecraft/class_2203$class_2209;Lnet/minecraft/class_2203$class_2209;Lnet/minecraft/class_3837$class_3841;)V- official - <init>- Lewt$b;<init>(Lfp$g;Lfp$g;Lewt$c;)V
 
 
- 
- 
Method Details- 
execute- Mappings:
- Namespace - Name - Mixin selector - named - execute- Lnet/minecraft/loot/function/CopyNbtLootFunction$Operation;execute(Ljava/util/function/Supplier;Lnet/minecraft/nbt/NbtElement;)V- intermediary - method_16860- Lnet/minecraft/class_3837$class_3839;method_16860(Ljava/util/function/Supplier;Lnet/minecraft/class_2520;)V- official - a- Lewt$b;a(Ljava/util/function/Supplier;Lun;)V
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
parsedSourcePathReturns the value of theparsedSourcePathrecord component.- Returns:
- the value of the parsedSourcePathrecord component
 
- 
parsedTargetPathReturns the value of theparsedTargetPathrecord component.- Returns:
- the value of the parsedTargetPathrecord component
 
- 
operatorReturns the value of theoperatorrecord component.- Returns:
- the value of the operatorrecord component
 
 
-