Package net.minecraft.loot.function
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 Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CopyNbtLootFunction.Path>
private final NbtPathArgumentType.NbtPath
The field for thepath
record component.private final String
The field for thestring
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static CopyNbtLootFunction.Path
path()
Returns the value of thepath
record component.string()
Returns the value of thestring
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
string
The field for thestring
record component. -
path
The field for thepath
record component. -
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
-
Path
-
-
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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
string
Returns the value of thestring
record component.- Returns:
- the value of the
string
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-