net.minecraft.util.logging

public class LogWriter<T>

implements Closeable

net.minecraft.util.eventlog.JsonEventLog
net.minecraft.class_7935
net.minecraft.util.logging.LogWriter

Field summary

Modifier and TypeField
private static final com.google.gson.Gson
GSON
field_41295
GSON
private final com.mojang.serialization.Codec<T>
codec
field_41296
codec
private final FileChannel
channel
field_41297
channel
private final AtomicInteger
referenceCount
field_41298
refCount

Constructor summary

ModifierConstructor
public (com.mojang.serialization.Codec<T> codec, FileChannel channel)

Method summary

Modifier and TypeMethod
public static <T> LogWriter<T>
open(com.mojang.serialization.Codec<T> codec, Path path)
method_47567(com.mojang.serialization.Codec<T> arg0, Path arg1)
create(com.mojang.serialization.Codec<T> codec, Path path)
public void
write(T event)
method_47568(T arg0)
write(T object)
public LogReader<T>
openReader()
method_47566()
getReader()
public void
close()
private void
releaseReference()
method_47569()
closeIfNotReferenced()