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 eia$dintermediary net/minecraft/class_3837$class_8753named net/minecraft/loot/function/CopyNbtLootFunction$Pathofficial bintermediary comp_1856named stringofficial cintermediary comp_1857named path
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CopyNbtLootFunction.Path>private final NbtPathArgumentType.NbtPathThe field for thepathrecord component.private final StringThe field for thestringrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static CopyNbtLootFunction.Pathpath()Returns the value of thepathrecord component.string()Returns the value of thestringrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
string
The field for thestringrecord component. -
path
The field for thepathrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLeia$d;a:Lcom/mojang/serialization/Codec;intermediary field_45822Lnet/minecraft/class_3837$class_8753;field_45822:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/loot/function/CopyNbtLootFunction$Path;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Path
-
-
Method Details
-
parse
public static CopyNbtLootFunction.Path parse(String path) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLeia$d;a(Ljava/lang/String;)Leia$d;intermediary method_53319Lnet/minecraft/class_3837$class_8753;method_53319(Ljava/lang/String;)Lnet/minecraft/class_3837$class_8753;named parseLnet/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 thestringrecord component.- Returns:
- the value of the
stringrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-