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