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 rtintermediary net/minecraft/class_6843named net/minecraft/nbt/scanner/NbtScanQueryofficial aintermediary comp_318named pathofficial bintermediary comp_319named typeofficial cintermediary comp_320named key
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNbtScanQuery(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 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;)Vintermediary <init>Lnet/minecraft/class_6843;<init>(Lnet/minecraft/class_4614;Ljava/lang/String;)Vnamed <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;)Vintermediary <init>Lnet/minecraft/class_6843;<init>(Ljava/lang/String;Lnet/minecraft/class_4614;Ljava/lang/String;)Vnamed <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;)Vintermediary <init>Lnet/minecraft/class_6843;<init>(Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_4614;Ljava/lang/String;)Vnamed <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 thepathrecord component.- Returns:
- the value of the
pathrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-