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(CopyNbtLootFunction.Path parsedSourcePath, CopyNbtLootFunction.Path parsedTargetPath, CopyNbtLootFunction.Operator operator) extends Record
Mappings:
Namespace Name
official eia$b
intermediary net/minecraft/class_3837$class_3839
named net/minecraft/loot/function/CopyNbtLootFunction$Operation
official b
intermediary comp_1853
named parsedSourcePath
official c
intermediary comp_1854
named parsedTargetPath
official d
intermediary comp_1855
named operator
  • Field Details

    • parsedSourcePath

      private final CopyNbtLootFunction.Path parsedSourcePath
      The field for the parsedSourcePath record component.
    • parsedTargetPath

      private final CopyNbtLootFunction.Path parsedTargetPath
      The field for the parsedTargetPath record component.
    • operator

      private final CopyNbtLootFunction.Operator operator
      The field for the operator record component.
    • CODEC

      public static final com.mojang.serialization.Codec<CopyNbtLootFunction.Operation> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Leia$b;a:Lcom/mojang/serialization/Codec;
      intermediary field_45820 Lnet/minecraft/class_3837$class_3839;field_45820:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/loot/function/CopyNbtLootFunction$Operation;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Operation

      Mappings:
      Namespace Name Mixin selector
      official <init> Leia$b;<init>(Leia$d;Leia$d;Leia$c;)V
      intermediary <init> Lnet/minecraft/class_3837$class_3839;<init>(Lnet/minecraft/class_3837$class_8753;Lnet/minecraft/class_3837$class_8753;Lnet/minecraft/class_3837$class_3841;)V
      named <init> Lnet/minecraft/loot/function/CopyNbtLootFunction$Operation;<init>(Lnet/minecraft/loot/function/CopyNbtLootFunction$Path;Lnet/minecraft/loot/function/CopyNbtLootFunction$Path;Lnet/minecraft/loot/function/CopyNbtLootFunction$Operator;)V
  • Method Details

    • execute

      public void execute(Supplier<NbtElement> itemNbtGetter, NbtElement sourceEntityNbt)
      Mappings:
      Namespace Name Mixin selector
      official a Leia$b;a(Ljava/util/function/Supplier;Ltk;)V
      intermediary method_16860 Lnet/minecraft/class_3837$class_3839;method_16860(Ljava/util/function/Supplier;Lnet/minecraft/class_2520;)V
      named execute Lnet/minecraft/loot/function/CopyNbtLootFunction$Operation;execute(Ljava/util/function/Supplier;Lnet/minecraft/nbt/NbtElement;)V
    • toString

      public final String toString()
      Returns 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates 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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • parsedSourcePath

      public CopyNbtLootFunction.Path parsedSourcePath()
      Returns the value of the parsedSourcePath record component.
      Returns:
      the value of the parsedSourcePath record component
    • parsedTargetPath

      public CopyNbtLootFunction.Path parsedTargetPath()
      Returns the value of the parsedTargetPath record component.
      Returns:
      the value of the parsedTargetPath record component
    • operator

      public CopyNbtLootFunction.Operator operator()
      Returns the value of the operator record component.
      Returns:
      the value of the operator record component