Package net.minecraft.loot.function
Record Class CopyNbtLootFunction.class_8753
java.lang.Object
java.lang.Record
net.minecraft.loot.function.CopyNbtLootFunction.class_8753
- Record Components:
string
-path
-
- Enclosing class:
CopyNbtLootFunction
private static record CopyNbtLootFunction.class_8753(String string, NbtPathArgumentType.NbtPath path)
extends Record
- Mappings:
Namespace Name official edl$d
intermediary net/minecraft/class_3837$class_8753
named net/minecraft/loot/function/CopyNbtLootFunction$class_8753
official b
intermediary comp_1856
named string
official c
intermediary comp_1857
named path
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CopyNbtLootFunction.class_8753>
private final NbtPathArgumentType.NbtPath
The field for thepath
record component.private final String
The field for thestring
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
class_8753
(String string, NbtPathArgumentType.NbtPath nbtPath) -
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.method_53319
(String string) 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. -
field_45822
- Mappings:
Namespace Name Mixin selector official a
Ledl$d;a:Lcom/mojang/serialization/Codec;
intermediary field_45822
Lnet/minecraft/class_3837$class_8753;field_45822:Lcom/mojang/serialization/Codec;
named field_45822
Lnet/minecraft/loot/function/CopyNbtLootFunction$class_8753;field_45822:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_8753
-
-
Method Details
-
method_53319
public static CopyNbtLootFunction.class_8753 method_53319(String string) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ledl$d;a(Ljava/lang/String;)Ledl$d;
intermediary method_53319
Lnet/minecraft/class_3837$class_8753;method_53319(Ljava/lang/String;)Lnet/minecraft/class_3837$class_8753;
named method_53319
Lnet/minecraft/loot/function/CopyNbtLootFunction$class_8753;method_53319(Ljava/lang/String;)Lnet/minecraft/loot/function/CopyNbtLootFunction$class_8753;
-
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
-