public class ConstantArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>> extends Object implements ArgumentSerializer<T>
Constructor and Description |
---|
ConstantArgumentSerializer(Supplier<T> supplier) |
Modifier and Type | Method and Description |
---|---|
T |
fromPacket(PacketByteBuf packetByteBuf) |
void |
toJson(T t,
JsonObject jsonObject) |
void |
toPacket(T t,
PacketByteBuf packetByteBuf) |
public void toPacket(T t, PacketByteBuf packetByteBuf)
toPacket
in interface ArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
public T fromPacket(PacketByteBuf packetByteBuf)
fromPacket
in interface ArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
public void toJson(T t, JsonObject jsonObject)
toJson
in interface ArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>