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 named net/minecraft/nbt/scanner/NbtScanQuery
intermediary net/minecraft/class_6843
official vg
named path
intermediary comp_318
official a
named type
intermediary comp_319
official b
named key
intermediary comp_320
official c
-
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 named <init>
Lnet/minecraft/nbt/scanner/NbtScanQuery;<init>(Lnet/minecraft/nbt/NbtType;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_6843;<init>(Lnet/minecraft/class_4614;Ljava/lang/String;)V
official <init>
Lvg;<init>(Luz;Ljava/lang/String;)V
-
NbtScanQuery
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/nbt/scanner/NbtScanQuery;<init>(Ljava/lang/String;Lnet/minecraft/nbt/NbtType;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_6843;<init>(Ljava/lang/String;Lnet/minecraft/class_4614;Ljava/lang/String;)V
official <init>
Lvg;<init>(Ljava/lang/String;Luz;Ljava/lang/String;)V
-
NbtScanQuery
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/nbt/scanner/NbtScanQuery;<init>(Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/nbt/NbtType;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
official <init>
Lvg;<init>(Ljava/lang/String;Ljava/lang/String;Luz;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
-