Package net.minecraft.nbt.scanner
Class NbtCollector
java.lang.Object
net.minecraft.nbt.scanner.NbtCollector
- All Implemented Interfaces:
NbtScanner
- Direct Known Subclasses:
ExclusiveNbtCollector
,SelectiveNbtCollector
An NBT collector scans an NBT structure and builds an object
representation out of it.
- Mappings:
Namespace Name named net/minecraft/nbt/scanner/NbtCollector
intermediary net/minecraft/class_6844
official vc
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.nbt.scanner.NbtScanner
NbtScanner.NestedResult, NbtScanner.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private @Nullable NbtElement
private final Deque
<Consumer<NbtElement>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
append
(NbtElement nbt) Ends a nested visit.protected int
getDepth()
getRoot()
private void
Starts a visit to an NBT structure.startListItem
(NbtType<?> type, int index) Starts a visit to an NBT structure in an element of a list NBT.startSubNbt
(NbtType<?> type, String key) Starts a visit to an NBT structure in the sub NBT of a compound NBT.visitByte
(byte value) visitByteArray
(byte[] value) visitDouble
(double value) visitEnd()
visitFloat
(float value) visitInt
(int value) visitIntArray
(int[] value) visitListMeta
(NbtType<?> entryType, int length) visitLong
(long value) visitLongArray
(long[] value) visitShort
(short value) visitString
(String value) visitSubNbtType
(NbtType<?> type)
-
Field Details
-
currentKey
- Mappings:
Namespace Name Mixin selector named currentKey
Lnet/minecraft/nbt/scanner/NbtCollector;currentKey:Ljava/lang/String;
intermediary field_36261
Lnet/minecraft/class_6844;field_36261:Ljava/lang/String;
official a
Lvc;a:Ljava/lang/String;
-
root
- Mappings:
Namespace Name Mixin selector named root
Lnet/minecraft/nbt/scanner/NbtCollector;root:Lnet/minecraft/nbt/NbtElement;
intermediary field_36262
Lnet/minecraft/class_6844;field_36262:Lnet/minecraft/class_2520;
official b
Lvc;b:Luu;
-
stack
- Mappings:
Namespace Name Mixin selector named stack
Lnet/minecraft/nbt/scanner/NbtCollector;stack:Ljava/util/Deque;
intermediary field_36263
Lnet/minecraft/class_6844;field_36263:Ljava/util/Deque;
official c
Lvc;c:Ljava/util/Deque;
-
-
Constructor Details
-
NbtCollector
public NbtCollector()
-
-
Method Details
-
getRoot
- Mappings:
Namespace Name Mixin selector named getRoot
Lnet/minecraft/nbt/scanner/NbtCollector;getRoot()Lnet/minecraft/nbt/NbtElement;
intermediary method_39887
Lnet/minecraft/class_6844;method_39887()Lnet/minecraft/class_2520;
official d
Lvc;d()Luu;
-
getDepth
protected int getDepth()- Mappings:
Namespace Name Mixin selector named getDepth
Lnet/minecraft/nbt/scanner/NbtCollector;getDepth()I
intermediary method_39888
Lnet/minecraft/class_6844;method_39888()I
official e
Lvc;e()I
-
append
- Mappings:
Namespace Name Mixin selector named append
Lnet/minecraft/nbt/scanner/NbtCollector;append(Lnet/minecraft/nbt/NbtElement;)V
intermediary method_39883
Lnet/minecraft/class_6844;method_39883(Lnet/minecraft/class_2520;)V
official a
Lvc;a(Luu;)V
-
visitEnd
- Specified by:
visitEnd
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitEnd
Lnet/minecraft/nbt/scanner/NbtScanner;visitEnd()Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39856
Lnet/minecraft/class_6836;method_39856()Lnet/minecraft/class_6836$class_6838;
official a
Lur;a()Lur$b;
-
visitString
- Specified by:
visitString
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitString
Lnet/minecraft/nbt/scanner/NbtScanner;visitString(Ljava/lang/String;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39862
Lnet/minecraft/class_6836;method_39862(Ljava/lang/String;)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a(Ljava/lang/String;)Lur$b;
-
visitByte
- Specified by:
visitByte
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitByte
Lnet/minecraft/nbt/scanner/NbtScanner;visitByte(B)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39857
Lnet/minecraft/class_6836;method_39857(B)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a(B)Lur$b;
-
visitShort
- Specified by:
visitShort
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitShort
Lnet/minecraft/nbt/scanner/NbtScanner;visitShort(S)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39866
Lnet/minecraft/class_6836;method_39866(S)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a(S)Lur$b;
-
visitInt
- Specified by:
visitInt
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitInt
Lnet/minecraft/nbt/scanner/NbtScanner;visitInt(I)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39860
Lnet/minecraft/class_6836;method_39860(I)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a(I)Lur$b;
-
visitLong
- Specified by:
visitLong
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitLong
Lnet/minecraft/nbt/scanner/NbtScanner;visitLong(J)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39861
Lnet/minecraft/class_6836;method_39861(J)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a(J)Lur$b;
-
visitFloat
- Specified by:
visitFloat
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitFloat
Lnet/minecraft/nbt/scanner/NbtScanner;visitFloat(F)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39859
Lnet/minecraft/class_6836;method_39859(F)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a(F)Lur$b;
-
visitDouble
- Specified by:
visitDouble
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitDouble
Lnet/minecraft/nbt/scanner/NbtScanner;visitDouble(D)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39858
Lnet/minecraft/class_6836;method_39858(D)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a(D)Lur$b;
-
visitByteArray
- Specified by:
visitByteArray
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitByteArray
Lnet/minecraft/nbt/scanner/NbtScanner;visitByteArray([B)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39867
Lnet/minecraft/class_6836;method_39867([B)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a([B)Lur$b;
-
visitIntArray
- Specified by:
visitIntArray
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitIntArray
Lnet/minecraft/nbt/scanner/NbtScanner;visitIntArray([I)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39868
Lnet/minecraft/class_6836;method_39868([I)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a([I)Lur$b;
-
visitLongArray
- Specified by:
visitLongArray
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitLongArray
Lnet/minecraft/nbt/scanner/NbtScanner;visitLongArray([J)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39869
Lnet/minecraft/class_6836;method_39869([J)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a([J)Lur$b;
-
visitListMeta
- Specified by:
visitListMeta
in interfaceNbtScanner
- Mappings:
Namespace Name Mixin selector named visitListMeta
Lnet/minecraft/nbt/scanner/NbtScanner;visitListMeta(Lnet/minecraft/nbt/NbtType;I)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39864
Lnet/minecraft/class_6836;method_39864(Lnet/minecraft/class_4614;I)Lnet/minecraft/class_6836$class_6838;
official a
Lur;a(Luw;I)Lur$b;
-
startListItem
Starts a visit to an NBT structure in an element of a list NBT.- Specified by:
startListItem
in interfaceNbtScanner
- See Also:
- Mappings:
Namespace Name Mixin selector named startListItem
Lnet/minecraft/nbt/scanner/NbtScanner;startListItem(Lnet/minecraft/nbt/NbtType;I)Lnet/minecraft/nbt/scanner/NbtScanner$NestedResult;
intermediary method_39872
Lnet/minecraft/class_6836;method_39872(Lnet/minecraft/class_4614;I)Lnet/minecraft/class_6836$class_6837;
official b
Lur;b(Luw;I)Lur$a;
-
visitSubNbtType
- Specified by:
visitSubNbtType
in interfaceNbtScanner
- 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
Lur;a(Luw;)Lur$a;
-
startSubNbt
Starts a visit to an NBT structure in the sub NBT of a compound NBT.- Specified by:
startSubNbt
in interfaceNbtScanner
- 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
Lur;a(Luw;Ljava/lang/String;)Lur$a;
-
pushStack
- Mappings:
Namespace Name Mixin selector named pushStack
Lnet/minecraft/nbt/scanner/NbtCollector;pushStack(Lnet/minecraft/nbt/NbtType;)V
intermediary method_39886
Lnet/minecraft/class_6844;method_39886(Lnet/minecraft/class_4614;)V
official c
Lvc;c(Luw;)V
-
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<?>)
, andstartListItem(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
- 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
Lur;b()Lur$b;
-
start
Starts a visit to an NBT structure.- Specified by:
start
in interfaceNbtScanner
- 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
Lur;b(Luw;)Lur$b;
-