Record Class CopyNbtLootFunction.Path

java.lang.Object
java.lang.Record
net.minecraft.loot.function.CopyNbtLootFunction.Path
Record Components:
string -
path -
Enclosing class:
CopyNbtLootFunction

private static record CopyNbtLootFunction.Path(String string, NbtPathArgumentType.NbtPath path) extends Record
Mappings:
Namespace Name
official edu$d
intermediary net/minecraft/class_3837$class_8753
named net/minecraft/loot/function/CopyNbtLootFunction$Path
official b
intermediary comp_1856
named string
official c
intermediary comp_1857
named path
  • Field Details

    • string

      private final String string
      The field for the string record component.
    • path

      private final NbtPathArgumentType.NbtPath path
      The field for the path record component.
    • CODEC

      public static final com.mojang.serialization.Codec<CopyNbtLootFunction.Path> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ledu$d;a:Lcom/mojang/serialization/Codec;
      intermediary field_45822 Lnet/minecraft/class_3837$class_8753;field_45822:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/loot/function/CopyNbtLootFunction$Path;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • parse

      public static CopyNbtLootFunction.Path parse(String string) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Ledu$d;a(Ljava/lang/String;)Ledu$d;
      intermediary method_53319 Lnet/minecraft/class_3837$class_8753;method_53319(Ljava/lang/String;)Lnet/minecraft/class_3837$class_8753;
      named parse Lnet/minecraft/loot/function/CopyNbtLootFunction$Path;parse(Ljava/lang/String;)Lnet/minecraft/loot/function/CopyNbtLootFunction$Path;
    • 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.
    • string

      public String string()
      Returns the value of the string record component.
      Returns:
      the value of the string record component
    • path

      Returns the value of the path record component.
      Returns:
      the value of the path record component