Package net.minecraft.util.eventlog
Class JsonEventLog<T>
java.lang.Object
net.minecraft.util.eventlog.JsonEventLog<T>
- All Implemented Interfaces:
 Closeable,AutoCloseable
- 
Field Summary
FieldsModifier and TypeFieldDescription(package private) final FileChannelprivate final com.mojang.serialization.Codec<T>private static final com.google.gson.Gsonprivate final AtomicInteger - 
Constructor Summary
ConstructorsConstructorDescriptionJsonEventLog(com.mojang.serialization.Codec<T> p_261608_, FileChannel p_262072_)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static <T> JsonEventLog<T>(package private) voidvoid 
- 
Field Details
- 
GSON
private static final com.google.gson.Gson GSON - 
codec
 - 
channel
 - 
referenceCount
 
 - 
 - 
Constructor Details
- 
JsonEventLog
 
 - 
 - 
Method Details
- 
open
public static <T> JsonEventLog<T> open(com.mojang.serialization.Codec<T> p_261795_, Path p_261489_) throws IOException - Throws:
 IOException
 - 
write
- Throws:
 IOExceptioncom.google.gson.JsonIOException
 - 
openReader
- Throws:
 IOException
 - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Throws:
 IOException
 - 
releaseReference
- Throws:
 IOException
 
 -