Class LogWriter<T>

java.lang.Object
net.minecraft.util.logging.LogWriter<T>
All Implemented Interfaces:
Closeable, AutoCloseable

public class LogWriter<T> extends Object implements Closeable
Mappings:
Namespace Name
official bdc
intermediary net/minecraft/class_7935
named net/minecraft/util/logging/LogWriter
  • Field Details

    • GSON

      private static final com.google.gson.Gson GSON
      Mappings:
      Namespace Name Mixin selector
      official a Lbdc;a:Lcom/google/gson/Gson;
      intermediary field_41295 Lnet/minecraft/class_7935;field_41295:Lcom/google/gson/Gson;
      named GSON Lnet/minecraft/util/logging/LogWriter;GSON:Lcom/google/gson/Gson;
    • codec

      private final com.mojang.serialization.Codec<T> codec
      Mappings:
      Namespace Name Mixin selector
      official b Lbdc;b:Lcom/mojang/serialization/Codec;
      intermediary field_41296 Lnet/minecraft/class_7935;field_41296:Lcom/mojang/serialization/Codec;
      named codec Lnet/minecraft/util/logging/LogWriter;codec:Lcom/mojang/serialization/Codec;
    • channel

      final FileChannel channel
      Mappings:
      Namespace Name Mixin selector
      official c Lbdc;c:Ljava/nio/channels/FileChannel;
      intermediary field_41297 Lnet/minecraft/class_7935;field_41297:Ljava/nio/channels/FileChannel;
      named channel Lnet/minecraft/util/logging/LogWriter;channel:Ljava/nio/channels/FileChannel;
    • refCount

      private final AtomicInteger refCount
      Mappings:
      Namespace Name Mixin selector
      official d Lbdc;d:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_41298 Lnet/minecraft/class_7935;field_41298:Ljava/util/concurrent/atomic/AtomicInteger;
      named refCount Lnet/minecraft/util/logging/LogWriter;refCount:Ljava/util/concurrent/atomic/AtomicInteger;
  • Constructor Details

    • LogWriter

      public LogWriter(com.mojang.serialization.Codec<T> codec, FileChannel channel)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdc;<init>(Lcom/mojang/serialization/Codec;Ljava/nio/channels/FileChannel;)V
      intermediary <init> Lnet/minecraft/class_7935;<init>(Lcom/mojang/serialization/Codec;Ljava/nio/channels/FileChannel;)V
      named <init> Lnet/minecraft/util/logging/LogWriter;<init>(Lcom/mojang/serialization/Codec;Ljava/nio/channels/FileChannel;)V
  • Method Details

    • create

      public static <T> LogWriter<T> create(com.mojang.serialization.Codec<T> codec, Path path) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lbdc;a(Lcom/mojang/serialization/Codec;Ljava/nio/file/Path;)Lbdc;
      intermediary method_47567 Lnet/minecraft/class_7935;method_47567(Lcom/mojang/serialization/Codec;Ljava/nio/file/Path;)Lnet/minecraft/class_7935;
      named create Lnet/minecraft/util/logging/LogWriter;create(Lcom/mojang/serialization/Codec;Ljava/nio/file/Path;)Lnet/minecraft/util/logging/LogWriter;
    • write

      public void write(T object) throws IOException, com.google.gson.JsonIOException
      Throws:
      IOException
      com.google.gson.JsonIOException
      Mappings:
      Namespace Name Mixin selector
      official a Lbdc;a(Ljava/lang/Object;)V
      intermediary method_47568 Lnet/minecraft/class_7935;method_47568(Ljava/lang/Object;)V
      named write Lnet/minecraft/util/logging/LogWriter;write(Ljava/lang/Object;)V
    • getReader

      public LogReader<T> getReader() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lbdc;a()Lbdd;
      intermediary method_47566 Lnet/minecraft/class_7935;method_47566()Lnet/minecraft/class_7936;
      named getReader Lnet/minecraft/util/logging/LogWriter;getReader()Lnet/minecraft/util/logging/LogReader;
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • closeIfNotReferenced

      void closeIfNotReferenced() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lbdc;b()V
      intermediary method_47569 Lnet/minecraft/class_7935;method_47569()V
      named closeIfNotReferenced Lnet/minecraft/util/logging/LogWriter;closeIfNotReferenced()V