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$a
intermediary net/minecraft/class_6841$class_6842
named net/minecraft/nbt/scanner/SelectiveNbtCollector$Tree
official a
intermediary comp_315
named depth
official b
intermediary comp_316
named fieldsToGet
official c
intermediary comp_317
named fieldsToRecurse
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thedepth
record component.The field for thefieldsToGet
record component.private final Map<String,
SelectiveNbtCollector.Tree> The field for thefieldsToRecurse
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SelectiveNbtCollector.Query query) int
depth()
Returns the value of thedepth
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefieldsToGet
record component.Returns the value of thefieldsToRecurse
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
depth
private final int depthThe field for thedepth
record component. -
fieldsToGet
The field for thefieldsToGet
record component. -
fieldsToRecurse
The field for thefieldsToRecurse
record component.
-
-
Constructor Details
-
Tree
public Tree(int depth) - Mappings:
Namespace Name Mixin selector official <init>
Lpc$a;<init>(I)V
intermediary <init>
Lnet/minecraft/class_6841$class_6842;<init>(I)V
named <init>
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector$Tree;<init>(I)V
-
Tree
-
-
Method Details
-
add
- Mappings:
Namespace Name Mixin selector official a
Lpc$a;a(Lpc$b;)V
intermediary method_39881
Lnet/minecraft/class_6841$class_6842;method_39881(Lnet/minecraft/class_6841$class_6843;)V
named add
Lnet/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 thedepth
record component.- Returns:
- the value of the
depth
record component
-
fieldsToGet
Returns the value of thefieldsToGet
record component.- Returns:
- the value of the
fieldsToGet
record component
-
fieldsToRecurse
Returns the value of thefieldsToRecurse
record component.- Returns:
- the value of the
fieldsToRecurse
record component
-