Package net.minecraft.nbt.scanner
Record Class NbtScanQuery
java.lang.Object
java.lang.Record
net.minecraft.nbt.scanner.NbtScanQuery
- Record Components:
path
-type
-key
-
A query for scanning the NBT using
ExclusiveNbtCollector
or
SelectiveNbtCollector
.- Mappings:
Namespace Name official sg
intermediary net/minecraft/class_6843
named net/minecraft/nbt/scanner/NbtScanQuery
official a
intermediary comp_318
named path
official b
intermediary comp_319
named type
official c
intermediary comp_320
named key
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNbtScanQuery
(String path1, String path2, NbtType<?> type, String key) NbtScanQuery
(String path, NbtType<?> type, String key) NbtScanQuery
(List<String> list, NbtType<?> nbtType, String string) NbtScanQuery
(NbtType<?> type, String key) -
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.key()
Returns the value of thekey
record component.path()
Returns the value of thepath
record component.final String
toString()
Returns a string representation of this record class.NbtType<?>
type()
Returns the value of thetype
record component.
-
Field Details
-
Constructor Details
-
NbtScanQuery
- Mappings:
Namespace Name Mixin selector official <init>
Lsg;<init>(Lrz;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_6843;<init>(Lnet/minecraft/class_4614;Ljava/lang/String;)V
named <init>
Lnet/minecraft/nbt/scanner/NbtScanQuery;<init>(Lnet/minecraft/nbt/NbtType;Ljava/lang/String;)V
-
NbtScanQuery
- Mappings:
Namespace Name Mixin selector official <init>
Lsg;<init>(Ljava/lang/String;Lrz;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_6843;<init>(Ljava/lang/String;Lnet/minecraft/class_4614;Ljava/lang/String;)V
named <init>
Lnet/minecraft/nbt/scanner/NbtScanQuery;<init>(Ljava/lang/String;Lnet/minecraft/nbt/NbtType;Ljava/lang/String;)V
-
NbtScanQuery
- Mappings:
Namespace Name Mixin selector official <init>
Lsg;<init>(Ljava/lang/String;Ljava/lang/String;Lrz;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_6843;<init>(Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_4614;Ljava/lang/String;)V
named <init>
Lnet/minecraft/nbt/scanner/NbtScanQuery;<init>(Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/nbt/NbtType;Ljava/lang/String;)V
-
NbtScanQuery
-
-
Method Details
-
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)
. -
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-