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 Details

  • 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

      private Tree(int int2, Map<String,NbtType<?>> map, Map<String,SelectiveNbtCollector.Tree> map2)
  • Method Details

    • add

      public void add(SelectiveNbtCollector.Query query)
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • depth

      public int depth()
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • fieldsToGet

      public Map<String,NbtType<?>> fieldsToGet()
      Returns the value of the fieldsToGet record component.
      Returns:
      the value of the fieldsToGet record component
    • fieldsToRecurse

      public Map<String,SelectiveNbtCollector.Tree> fieldsToRecurse()
      Returns the value of the fieldsToRecurse record component.
      Returns:
      the value of the fieldsToRecurse record component