Package net.minecraft.util.eventlog
Class JsonEventLog<T>
java.lang.Object
net.minecraft.util.eventlog.JsonEventLog<T>
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Modifier and TypeFieldDescription(package private) final FileChannel
private final com.mojang.serialization.Codec<T>
private static final com.google.gson.Gson
private final AtomicInteger
-
Constructor Summary
ConstructorDescriptionJsonEventLog
(com.mojang.serialization.Codec<T> p_261608_, FileChannel p_262072_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static <T> JsonEventLog<T>
(package private) void
void
-
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:
IOException
com.google.gson.JsonIOException
-
openReader
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
releaseReference
- Throws:
IOException
-