Package net.minecraft.nbt.scanner
Record Class SelectiveNbtCollector.Tree
java.lang.Object
java.lang.Record
net.minecraft.nbt.scanner.SelectiveNbtCollector.Tree
- Record Components:
depth-fieldsToGet-fieldsToRecurse-
- Enclosing class:
- SelectiveNbtCollector
private static record SelectiveNbtCollector.Tree(int depth, Map<String,NbtType<?>> fieldsToGet, Map<String,SelectiveNbtCollector.Tree> fieldsToRecurse)
extends Record
- Mappings:
Namespace Name official pc$aintermediary net/minecraft/class_6841$class_6842named net/minecraft/nbt/scanner/SelectiveNbtCollector$Treeofficial aintermediary comp_315named depthofficial bintermediary comp_316named fieldsToGetofficial cintermediary comp_317named fieldsToRecurse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedepthrecord component.The field for thefieldsToGetrecord component.private final Map<String,SelectiveNbtCollector.Tree> The field for thefieldsToRecurserecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SelectiveNbtCollector.Query query) intdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldsToGetrecord component.Returns the value of thefieldsToRecurserecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
depth
private final int depthThe field for thedepthrecord component. -
fieldsToGet
The field for thefieldsToGetrecord component. -
fieldsToRecurse
The field for thefieldsToRecurserecord component.
-
-
Constructor Details
-
Tree
public Tree(int depth) - Mappings:
Namespace Name Mixin selector official <init>Lpc$a;<init>(I)Vintermediary <init>Lnet/minecraft/class_6841$class_6842;<init>(I)Vnamed <init>Lnet/minecraft/nbt/scanner/SelectiveNbtCollector$Tree;<init>(I)V
-
Tree
-
-
Method Details
-
add
- Mappings:
Namespace Name Mixin selector official aLpc$a;a(Lpc$b;)Vintermediary method_39881Lnet/minecraft/class_6841$class_6842;method_39881(Lnet/minecraft/class_6841$class_6843;)Vnamed addLnet/minecraft/nbt/scanner/SelectiveNbtCollector$Tree;add(Lnet/minecraft/nbt/scanner/SelectiveNbtCollector$Query;)V
-
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
-
fieldsToGet
Returns the value of thefieldsToGetrecord component.- Returns:
- the value of the
fieldsToGetrecord component
-
fieldsToRecurse
Returns the value of thefieldsToRecurserecord component.- Returns:
- the value of the
fieldsToRecurserecord component
-