public class ArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>> extends java.lang.Object implements IArgumentSerializer<T>
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.Supplier<T> |
factory |
| Constructor and Description |
|---|
ArgumentSerializer(java.util.function.Supplier<T> factory) |
| Modifier and Type | Method and Description |
|---|---|
T |
read(PacketBuffer buffer) |
void |
write(T p_212244_1_,
com.google.gson.JsonObject p_212244_2_) |
void |
write(T argument,
PacketBuffer buffer) |
private final java.util.function.Supplier<T extends com.mojang.brigadier.arguments.ArgumentType<?>> factory
public ArgumentSerializer(java.util.function.Supplier<T> factory)
public void write(T argument, PacketBuffer buffer)
write in interface IArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>public T read(PacketBuffer buffer)
read in interface IArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>public void write(T p_212244_1_, com.google.gson.JsonObject p_212244_2_)
write in interface IArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>