Package net.minecraft.nbt.scanner
Record Class Tree
java.lang.Object
java.lang.Record
net.minecraft.nbt.scanner.Tree
- Record Components:
depth-selectedFields-fieldsToRecurse-
public record Tree(int depth, Map<String,NbtType<?>> selectedFields, Map<String,Tree> fieldsToRecurse)
extends Record
- Mappings:
Namespace Name official pfintermediary net/minecraft/class_6842named net/minecraft/nbt/scanner/Treeofficial aintermediary comp_315named depthofficial bintermediary comp_323named selectedFieldsofficial cintermediary comp_317named fieldsToRecurse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedepthrecord component.The field for thefieldsToRecurserecord component.The field for theselectedFieldsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldsToRecurserecord component.final inthashCode()Returns a hash code value for this object.static Treebooleanmethod_40061(NbtType<?> nbtType, String string) Returns the value of theselectedFieldsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
depth
private final int depthThe field for thedepthrecord component. -
selectedFields
The field for theselectedFieldsrecord component. -
fieldsToRecurse
The field for thefieldsToRecurserecord component.
-
-
Constructor Details
-
Tree
private Tree(int depth) - Mappings:
Namespace Name Mixin selector official <init>Lpf;<init>(I)Vintermediary <init>Lnet/minecraft/class_6842;<init>(I)Vnamed <init>Lnet/minecraft/nbt/scanner/Tree;<init>(I)V
-
Tree
-
-
Method Details
-
method_40060
- Mappings:
Namespace Name Mixin selector official aLpf;a()Lpf;intermediary method_40060Lnet/minecraft/class_6842;method_40060()Lnet/minecraft/class_6842;named method_40060Lnet/minecraft/nbt/scanner/Tree;method_40060()Lnet/minecraft/nbt/scanner/Tree;
-
add
- Mappings:
Namespace Name Mixin selector official aLpf;a(Lpe;)Vintermediary method_39881Lnet/minecraft/class_6842;method_39881(Lnet/minecraft/class_6843;)Vnamed addLnet/minecraft/nbt/scanner/Tree;add(Lnet/minecraft/nbt/scanner/Query;)V
-
method_40061
- Mappings:
Namespace Name Mixin selector official aLpf;a(Lox;Ljava/lang/String;)Zintermediary method_40061Lnet/minecraft/class_6842;method_40061(Lnet/minecraft/class_4614;Ljava/lang/String;)Znamed method_40061Lnet/minecraft/nbt/scanner/Tree;method_40061(Lnet/minecraft/nbt/NbtType;Ljava/lang/String;)Z
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
selectedFields
Returns the value of theselectedFieldsrecord component.- Returns:
- the value of the
selectedFieldsrecord component
-
fieldsToRecurse
Returns the value of thefieldsToRecurserecord component.- Returns:
- the value of the
fieldsToRecurserecord component
-