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 named net/minecraft/nbt/scanner/SelectiveNbtCollector
intermediary net/minecraft/class_6841
official wb
-
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 named queriesLeft
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;queriesLeft:I
intermediary field_36258
Lnet/minecraft/class_6841;field_36258:I
official a
Lwb;a:I
-
allPossibleTypes
- Mappings:
Namespace Name Mixin selector named allPossibleTypes
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;allPossibleTypes:Ljava/util/Set;
intermediary field_36259
Lnet/minecraft/class_6841;field_36259:Ljava/util/Set;
official b
Lwb;b:Ljava/util/Set;
-
selectionStack
- Mappings:
Namespace Name Mixin selector named selectionStack
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;selectionStack:Ljava/util/Deque;
intermediary field_36260
Lnet/minecraft/class_6841;field_36260:Ljava/util/Deque;
official c
Lwb;c:Ljava/util/Deque;
-
-
Constructor Details
-
SelectiveNbtCollector
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;<init>([Lnet/minecraft/nbt/scanner/NbtScanQuery;)V
intermediary <init>
Lnet/minecraft/class_6841;<init>([Lnet/minecraft/class_6843;)V
official <init>
Lwb;<init>([Lwd;)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 named start
Lnet/minecraft/nbt/scanner/NbtScanner;start(Lnet/minecraft/nbt/NbtType;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39871
Lnet/minecraft/class_6836;method_39871(Lnet/minecraft/class_4614;)Lnet/minecraft/class_6836$class_6838;
official b
Lvr;b(Lvw;)Lvr$b;
-
visitSubNbtType
- Specified by:
visitSubNbtType
in interfaceNbtScanner
- Overrides:
visitSubNbtType
in classNbtCollector
- Mappings:
Namespace Name Mixin selector named visitSubNbtType
Lnet/minecraft/nbt/scanner/NbtScanner;visitSubNbtType(Lnet/minecraft/nbt/NbtType;)Lnet/minecraft/nbt/scanner/NbtScanner$NestedResult;
intermediary method_39863
Lnet/minecraft/class_6836;method_39863(Lnet/minecraft/class_4614;)Lnet/minecraft/class_6836$class_6837;
official a
Lvr;a(Lvw;)Lvr$a;
-
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 named startSubNbt
Lnet/minecraft/nbt/scanner/NbtScanner;startSubNbt(Lnet/minecraft/nbt/NbtType;Ljava/lang/String;)Lnet/minecraft/nbt/scanner/NbtScanner$NestedResult;
intermediary method_39865
Lnet/minecraft/class_6836;method_39865(Lnet/minecraft/class_4614;Ljava/lang/String;)Lnet/minecraft/class_6836$class_6837;
official a
Lvr;a(Lvw;Ljava/lang/String;)Lvr$a;
-
endNested
Ends a nested visit.This is guaranteed to be called once for each call to
start(net.minecraft.nbt.NbtType<?>)
,visitSubNbtType(net.minecraft.nbt.NbtType<?>)
, andNbtCollector.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 named endNested
Lnet/minecraft/nbt/scanner/NbtScanner;endNested()Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39870
Lnet/minecraft/class_6836;method_39870()Lnet/minecraft/class_6836$class_6838;
official b
Lvr;b()Lvr$b;
-
getQueriesLeft
public int getQueriesLeft()- Mappings:
Namespace Name Mixin selector named getQueriesLeft
Lnet/minecraft/nbt/scanner/SelectiveNbtCollector;getQueriesLeft()I
intermediary method_39879
Lnet/minecraft/class_6841;method_39879()I
official c
Lwb;c()I
-