Class NbtIo

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

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

    • NbtIo

      public NbtIo()
  • Method Details

    • readCompressed

      public static CompoundTag readCompressed​(InputStream stream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldx;a(Ljava/io/InputStream;)Ldn;
      intermediary method_5053 Lnet/minecraft/class_1414;method_5053(Ljava/io/InputStream;)Lnet/minecraft/class_1405;
      named readCompressed Lnet/minecraft/nbt/NbtIo;readCompressed(Ljava/io/InputStream;)Lnet/minecraft/nbt/CompoundTag;
    • writeCompressed

      public static void writeCompressed​(CompoundTag tag, OutputStream stream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldx;a(Ldn;Ljava/io/OutputStream;)V
      intermediary method_5047 Lnet/minecraft/class_1414;method_5047(Lnet/minecraft/class_1405;Ljava/io/OutputStream;)V
      named writeCompressed Lnet/minecraft/nbt/NbtIo;writeCompressed(Lnet/minecraft/nbt/CompoundTag;Ljava/io/OutputStream;)V
    • safeWrite

      @Environment(CLIENT) public static void safeWrite​(CompoundTag tag, File file) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldx;a(Ldn;Ljava/io/File;)V
      intermediary method_5046 Lnet/minecraft/class_1414;method_5046(Lnet/minecraft/class_1405;Ljava/io/File;)V
      named safeWrite Lnet/minecraft/nbt/NbtIo;safeWrite(Lnet/minecraft/nbt/CompoundTag;Ljava/io/File;)V
    • write

      @Environment(CLIENT) public static void write​(CompoundTag tag, File file) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Ldx;b(Ldn;Ljava/io/File;)V
      intermediary method_5054 Lnet/minecraft/class_1414;method_5054(Lnet/minecraft/class_1405;Ljava/io/File;)V
      named write Lnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/CompoundTag;Ljava/io/File;)V
    • read

      @Environment(CLIENT) public static CompoundTag read​(File file) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldx;a(Ljava/io/File;)Ldn;
      intermediary method_5052 Lnet/minecraft/class_1414;method_5052(Ljava/io/File;)Lnet/minecraft/class_1405;
      named read Lnet/minecraft/nbt/NbtIo;read(Ljava/io/File;)Lnet/minecraft/nbt/CompoundTag;
    • read

      public static CompoundTag read​(DataInputStream stream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldx;a(Ljava/io/DataInputStream;)Ldn;
      intermediary method_5051 Lnet/minecraft/class_1414;method_5051(Ljava/io/DataInputStream;)Lnet/minecraft/class_1405;
      named read Lnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInputStream;)Lnet/minecraft/nbt/CompoundTag;
    • read

      public static CompoundTag read​(DataInput input, PositionTracker trakcer) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldx;a(Ljava/io/DataInput;Ldw;)Ldn;
      intermediary method_5050 Lnet/minecraft/class_1414;method_5050(Ljava/io/DataInput;Lnet/minecraft/class_1413;)Lnet/minecraft/class_1405;
      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 Ldx;a(Ldn;Ljava/io/DataOutput;)V
      intermediary method_5045 Lnet/minecraft/class_1414;method_5045(Lnet/minecraft/class_1405;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 Ldx;a(Leb;Ljava/io/DataOutput;)V
      intermediary method_5048 Lnet/minecraft/class_1414;method_5048(Lnet/minecraft/class_1419;Ljava/io/DataOutput;)V
      named write Lnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/Tag;Ljava/io/DataOutput;)V
    • method_5049

      private static Tag method_5049​(DataInput dataInput, int int2, PositionTracker positionTracker) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldx;a(Ljava/io/DataInput;ILdw;)Leb;
      intermediary method_5049 Lnet/minecraft/class_1414;method_5049(Ljava/io/DataInput;ILnet/minecraft/class_1413;)Lnet/minecraft/class_1419;
      named method_5049 Lnet/minecraft/nbt/NbtIo;method_5049(Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)Lnet/minecraft/nbt/Tag;