Package net.minecraft.nbt.scanner
Class SelectiveNbtCollector
java.lang.Object
net.minecraft.nbt.scanner.NbtCollector
net.minecraft.nbt.scanner.SelectiveNbtCollector
- All Implemented Interfaces:
NbtScanner
A selective NBT collector builds an NBT object including only the
prescribed queries.
- See Also:
- Mappings:
Namespace Name official rr
intermediary net/minecraft/class_6841
named net/minecraft/nbt/scanner/SelectiveNbtCollector
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.nbt.scanner.NbtScanner
NbtScanner.NestedResult, NbtScanner.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEnds a nested visit.int
Starts a visit to an NBT structure.startSubNbt
(NbtType<?> type, String key) Starts a visit to an NBT structure in the sub NBT of a compound NBT.visitSubNbtType
(NbtType<?> type) Methods inherited from class net.minecraft.nbt.scanner.NbtCollector
getDepth, getRoot, startListItem, visitByte, visitByteArray, visitDouble, visitEnd, visitFloat, visitInt, visitIntArray, visitListMeta, visitLong, visitLongArray, visitShort, visitString
-
Field Details
-
queriesLeft
private int queriesLeft- Mappings:
Namespace Name Mixin selector official a
Lrr;a:I
intermediary field_36258
Lnet/minecraft/class_6841;field_36258:I
named queriesLeft
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;queriesLeft:I
-
allPossibleTypes
- Mappings:
Namespace Name Mixin selector official b
Lrr;b:Ljava/util/Set;
intermediary field_36259
Lnet/minecraft/class_6841;field_36259:Ljava/util/Set;
named allPossibleTypes
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;allPossibleTypes:Ljava/util/Set;
-
selectionStack
- Mappings:
Namespace Name Mixin selector official c
Lrr;c:Ljava/util/Deque;
intermediary field_36260
Lnet/minecraft/class_6841;field_36260:Ljava/util/Deque;
named selectionStack
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;selectionStack:Ljava/util/Deque;
-
-
Constructor Details
-
SelectiveNbtCollector
- Mappings:
Namespace Name Mixin selector official <init>
Lrr;<init>([Lrt;)V
intermediary <init>
Lnet/minecraft/class_6841;<init>([Lnet/minecraft/class_6843;)V
named <init>
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;<init>([Lnet/minecraft/nbt/scanner/NbtScanQuery;)V
-
-
Method Details
-
start
Starts a visit to an NBT structure.- Specified by:
start
in interfaceNbtScanner
- Overrides:
start
in classNbtCollector
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lrh;b(Lrm;)Lrh$b;
intermediary method_39871
Lnet/minecraft/class_6836;method_39871(Lnet/minecraft/class_4614;)Lnet/minecraft/class_6836$class_6838;
named start
Lnet/minecraft/nbt/scanner/NbtScanner;start(Lnet/minecraft/nbt/NbtType;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
-
visitSubNbtType
- Specified by:
visitSubNbtType
in interfaceNbtScanner
- Overrides:
visitSubNbtType
in classNbtCollector
- Mappings:
Namespace Name Mixin selector official a
Lrh;a(Lrm;)Lrh$a;
intermediary method_39863
Lnet/minecraft/class_6836;method_39863(Lnet/minecraft/class_4614;)Lnet/minecraft/class_6836$class_6837;
named visitSubNbtType
Lnet/minecraft/nbt/scanner/NbtScanner;visitSubNbtType(Lnet/minecraft/nbt/NbtType;)Lnet/minecraft/nbt/scanner/NbtScanner$NestedResult;
-
startSubNbt
Starts a visit to an NBT structure in the sub NBT of a compound NBT.- Specified by:
startSubNbt
in interfaceNbtScanner
- Overrides:
startSubNbt
in classNbtCollector
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lrh;a(Lrm;Ljava/lang/String;)Lrh$a;
intermediary method_39865
Lnet/minecraft/class_6836;method_39865(Lnet/minecraft/class_4614;Ljava/lang/String;)Lnet/minecraft/class_6836$class_6837;
named startSubNbt
Lnet/minecraft/nbt/scanner/NbtScanner;startSubNbt(Lnet/minecraft/nbt/NbtType;Ljava/lang/String;)Lnet/minecraft/nbt/scanner/NbtScanner$NestedResult;
-
endNested
Ends a nested visit.This is guaranteed to be called once for each call to
NbtScanner.start(net.minecraft.nbt.NbtType<?>)
,NbtScanner.visitSubNbtType(net.minecraft.nbt.NbtType<?>)
, andNbtScanner.startListItem(net.minecraft.nbt.NbtType<?>, int)
where the list or the compound NBT type is passed, unless the visit is halted.- Specified by:
endNested
in interfaceNbtScanner
- Overrides:
endNested
in classNbtCollector
- Mappings:
Namespace Name Mixin selector official b
Lrh;b()Lrh$b;
intermediary method_39870
Lnet/minecraft/class_6836;method_39870()Lnet/minecraft/class_6836$class_6838;
named endNested
Lnet/minecraft/nbt/scanner/NbtScanner;endNested()Lnet/minecraft/nbt/scanner/NbtScanner$Result;
-
getQueriesLeft
public int getQueriesLeft()- Mappings:
Namespace Name Mixin selector official c
Lrr;c()I
intermediary method_39879
Lnet/minecraft/class_6841;method_39879()I
named getQueriesLeft
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;getQueriesLeft()I
-