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 - rt- 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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionNbtScanQuery(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 SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.NbtType<?>type()Returns the value of thetyperecord component.
- 
Field Details
- 
Constructor Details- 
NbtScanQuery- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lrt;<init>(Lrm;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>- Lrt;<init>(Ljava/lang/String;Lrm;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>- Lrt;<init>(Ljava/lang/String;Ljava/lang/String;Lrm;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- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
pathReturns the value of thepathrecord component.- Returns:
- the value of the pathrecord component
 
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
keyReturns the value of thekeyrecord component.- Returns:
- the value of the keyrecord component
 
 
-