Interface SimpleNbtScanner

All Superinterfaces:
NbtScanner

public interface SimpleNbtScanner extends NbtScanner
A simple NBT scanner visits all elements shallowly, allowing implementations to override it and perform more actions.
Mappings:
Namespace Name
official rv
intermediary net/minecraft/class_6845
named net/minecraft/nbt/scanner/SimpleNbtScanner
  • Field Details

    • NOOP

      static final SimpleNbtScanner NOOP
      The simple NBT scanner that performs no action.
      Mappings:
      Namespace Name Mixin selector
      official a Lrv;a:Lrv;
      intermediary field_36264 Lnet/minecraft/class_6845;field_36264:Lnet/minecraft/class_6845;
      named NOOP Lnet/minecraft/nbt/scanner/SimpleNbtScanner;NOOP:Lnet/minecraft/nbt/scanner/SimpleNbtScanner;
  • Method Details

    • visitEnd

      default NbtScanner.Result visitEnd()
      Specified by:
      visitEnd in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a()Lrh$b;
      intermediary method_39856 Lnet/minecraft/class_6836;method_39856()Lnet/minecraft/class_6836$class_6838;
      named visitEnd Lnet/minecraft/nbt/scanner/NbtScanner;visitEnd()Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitString

      default NbtScanner.Result visitString(String value)
      Specified by:
      visitString in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a(Ljava/lang/String;)Lrh$b;
      intermediary method_39862 Lnet/minecraft/class_6836;method_39862(Ljava/lang/String;)Lnet/minecraft/class_6836$class_6838;
      named visitString Lnet/minecraft/nbt/scanner/NbtScanner;visitString(Ljava/lang/String;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitByte

      default NbtScanner.Result visitByte(byte value)
      Specified by:
      visitByte in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a(B)Lrh$b;
      intermediary method_39857 Lnet/minecraft/class_6836;method_39857(B)Lnet/minecraft/class_6836$class_6838;
      named visitByte Lnet/minecraft/nbt/scanner/NbtScanner;visitByte(B)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitShort

      default NbtScanner.Result visitShort(short value)
      Specified by:
      visitShort in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a(S)Lrh$b;
      intermediary method_39866 Lnet/minecraft/class_6836;method_39866(S)Lnet/minecraft/class_6836$class_6838;
      named visitShort Lnet/minecraft/nbt/scanner/NbtScanner;visitShort(S)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitInt

      default NbtScanner.Result visitInt(int value)
      Specified by:
      visitInt in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a(I)Lrh$b;
      intermediary method_39860 Lnet/minecraft/class_6836;method_39860(I)Lnet/minecraft/class_6836$class_6838;
      named visitInt Lnet/minecraft/nbt/scanner/NbtScanner;visitInt(I)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitLong

      default NbtScanner.Result visitLong(long value)
      Specified by:
      visitLong in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a(J)Lrh$b;
      intermediary method_39861 Lnet/minecraft/class_6836;method_39861(J)Lnet/minecraft/class_6836$class_6838;
      named visitLong Lnet/minecraft/nbt/scanner/NbtScanner;visitLong(J)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitFloat

      default NbtScanner.Result visitFloat(float value)
      Specified by:
      visitFloat in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a(F)Lrh$b;
      intermediary method_39859 Lnet/minecraft/class_6836;method_39859(F)Lnet/minecraft/class_6836$class_6838;
      named visitFloat Lnet/minecraft/nbt/scanner/NbtScanner;visitFloat(F)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitDouble

      default NbtScanner.Result visitDouble(double value)
      Specified by:
      visitDouble in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a(D)Lrh$b;
      intermediary method_39858 Lnet/minecraft/class_6836;method_39858(D)Lnet/minecraft/class_6836$class_6838;
      named visitDouble Lnet/minecraft/nbt/scanner/NbtScanner;visitDouble(D)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitByteArray

      default NbtScanner.Result visitByteArray(byte[] value)
      Specified by:
      visitByteArray in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a([B)Lrh$b;
      intermediary method_39867 Lnet/minecraft/class_6836;method_39867([B)Lnet/minecraft/class_6836$class_6838;
      named visitByteArray Lnet/minecraft/nbt/scanner/NbtScanner;visitByteArray([B)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitIntArray

      default NbtScanner.Result visitIntArray(int[] value)
      Specified by:
      visitIntArray in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a([I)Lrh$b;
      intermediary method_39868 Lnet/minecraft/class_6836;method_39868([I)Lnet/minecraft/class_6836$class_6838;
      named visitIntArray Lnet/minecraft/nbt/scanner/NbtScanner;visitIntArray([I)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitLongArray

      default NbtScanner.Result visitLongArray(long[] value)
      Specified by:
      visitLongArray in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a([J)Lrh$b;
      intermediary method_39869 Lnet/minecraft/class_6836;method_39869([J)Lnet/minecraft/class_6836$class_6838;
      named visitLongArray Lnet/minecraft/nbt/scanner/NbtScanner;visitLongArray([J)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • visitListMeta

      default NbtScanner.Result visitListMeta(NbtType<?> entryType, int length)
      Specified by:
      visitListMeta in interface NbtScanner
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a(Lrm;I)Lrh$b;
      intermediary method_39864 Lnet/minecraft/class_6836;method_39864(Lnet/minecraft/class_4614;I)Lnet/minecraft/class_6836$class_6838;
      named visitListMeta Lnet/minecraft/nbt/scanner/NbtScanner;visitListMeta(Lnet/minecraft/nbt/NbtType;I)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
    • startListItem

      default NbtScanner.NestedResult startListItem(NbtType<?> type, int index)
      Starts a visit to an NBT structure in an element of a list NBT.
      Specified by:
      startListItem in interface NbtScanner
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lrh;b(Lrm;I)Lrh$a;
      intermediary method_39872 Lnet/minecraft/class_6836;method_39872(Lnet/minecraft/class_4614;I)Lnet/minecraft/class_6836$class_6837;
      named startListItem Lnet/minecraft/nbt/scanner/NbtScanner;startListItem(Lnet/minecraft/nbt/NbtType;I)Lnet/minecraft/nbt/scanner/NbtScanner$NestedResult;
    • visitSubNbtType

      default NbtScanner.NestedResult visitSubNbtType(NbtType<?> type)
      Specified by:
      visitSubNbtType in interface NbtScanner
      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

      default NbtScanner.NestedResult startSubNbt(NbtType<?> type, String key)
      Starts a visit to an NBT structure in the sub NBT of a compound NBT.
      Specified by:
      startSubNbt in interface NbtScanner
      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

      default NbtScanner.Result 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<?>), and NbtScanner.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 interface NbtScanner
      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;
    • start

      default NbtScanner.Result start(NbtType<?> rootType)
      Starts a visit to an NBT structure.
      Specified by:
      start in interface NbtScanner
      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;