Class NbtIo

java.lang.Object
net.minecraft.nbt.NbtIo

public class NbtIo
extends Object
Mappings:
Namespace Name
official na
intermediary net/minecraft/class_2507
named net/minecraft/nbt/NbtIo
  • Constructor Details

    • NbtIo

      public NbtIo()
  • Method Details

    • readCompressed

      public static CompoundTag readCompressed​(File file) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Ljava/io/File;)Lmq;
      intermediary method_30613 Lnet/minecraft/class_2507;method_30613(Ljava/io/File;)Lnet/minecraft/class_2487;
      named readCompressed Lnet/minecraft/nbt/NbtIo;readCompressed(Ljava/io/File;)Lnet/minecraft/nbt/CompoundTag;
    • readCompressed

      public static CompoundTag readCompressed​(InputStream stream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Ljava/io/InputStream;)Lmq;
      intermediary method_10629 Lnet/minecraft/class_2507;method_10629(Ljava/io/InputStream;)Lnet/minecraft/class_2487;
      named readCompressed Lnet/minecraft/nbt/NbtIo;readCompressed(Ljava/io/InputStream;)Lnet/minecraft/nbt/CompoundTag;
    • writeCompressed

      public static void writeCompressed​(CompoundTag tag, File file) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Lmq;Ljava/io/File;)V
      intermediary method_30614 Lnet/minecraft/class_2507;method_30614(Lnet/minecraft/class_2487;Ljava/io/File;)V
      named writeCompressed Lnet/minecraft/nbt/NbtIo;writeCompressed(Lnet/minecraft/nbt/CompoundTag;Ljava/io/File;)V
    • writeCompressed

      public static void writeCompressed​(CompoundTag tag, OutputStream stream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Lmq;Ljava/io/OutputStream;)V
      intermediary method_10634 Lnet/minecraft/class_2507;method_10634(Lnet/minecraft/class_2487;Ljava/io/OutputStream;)V
      named writeCompressed Lnet/minecraft/nbt/NbtIo;writeCompressed(Lnet/minecraft/nbt/CompoundTag;Ljava/io/OutputStream;)V
    • write

      @Environment(CLIENT) public static void write​(CompoundTag tag, File file) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lna;b(Lmq;Ljava/io/File;)V
      intermediary method_10630 Lnet/minecraft/class_2507;method_10630(Lnet/minecraft/class_2487;Ljava/io/File;)V
      named write Lnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/CompoundTag;Ljava/io/File;)V
    • read

      @Environment(CLIENT) @Nullable public static CompoundTag read​(File file) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lna;b(Ljava/io/File;)Lmq;
      intermediary method_10633 Lnet/minecraft/class_2507;method_10633(Ljava/io/File;)Lnet/minecraft/class_2487;
      named read Lnet/minecraft/nbt/NbtIo;read(Ljava/io/File;)Lnet/minecraft/nbt/CompoundTag;
    • read

      public static CompoundTag read​(DataInput input) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Ljava/io/DataInput;)Lmq;
      intermediary method_10627 Lnet/minecraft/class_2507;method_10627(Ljava/io/DataInput;)Lnet/minecraft/class_2487;
      named read Lnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInput;)Lnet/minecraft/nbt/CompoundTag;
    • read

      public static CompoundTag read​(DataInput input, PositionTracker tracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Ljava/io/DataInput;Lmz;)Lmq;
      intermediary method_10625 Lnet/minecraft/class_2507;method_10625(Ljava/io/DataInput;Lnet/minecraft/class_2505;)Lnet/minecraft/class_2487;
      named read Lnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInput;Lnet/minecraft/nbt/PositionTracker;)Lnet/minecraft/nbt/CompoundTag;
    • write

      public static void write​(CompoundTag tag, DataOutput output) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Lmq;Ljava/io/DataOutput;)V
      intermediary method_10628 Lnet/minecraft/class_2507;method_10628(Lnet/minecraft/class_2487;Ljava/io/DataOutput;)V
      named write Lnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/CompoundTag;Ljava/io/DataOutput;)V
    • write

      private static void write​(Tag tag, DataOutput output) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Lni;Ljava/io/DataOutput;)V
      intermediary method_10631 Lnet/minecraft/class_2507;method_10631(Lnet/minecraft/class_2520;Ljava/io/DataOutput;)V
      named write Lnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/Tag;Ljava/io/DataOutput;)V
    • read

      private static Tag read​(DataInput input, int depth, PositionTracker tracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Ljava/io/DataInput;ILmz;)Lni;
      intermediary method_10626 Lnet/minecraft/class_2507;method_10626(Ljava/io/DataInput;ILnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
      named read Lnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)Lnet/minecraft/nbt/Tag;