Class EnumArgument.Serializer
java.lang.Object
net.minecraftforge.server.command.EnumArgument.Serializer
- All Implemented Interfaces:
ArgumentSerializer<EnumArgument<?>>
- Enclosing class:
- EnumArgument<T extends Enum<T>>
public static class EnumArgument.Serializer
extends Object
implements ArgumentSerializer<EnumArgument<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEnumArgument<?>
deserializeFromNetwork(FriendlyByteBuf buffer)
void
serializeToJson(EnumArgument<?> argument, com.google.gson.JsonObject json)
void
serializeToNetwork(EnumArgument<?> argument, FriendlyByteBuf buffer)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serializeToNetwork
- Specified by:
serializeToNetwork
in interfaceArgumentSerializer<EnumArgument<?>>
-
deserializeFromNetwork
- Specified by:
deserializeFromNetwork
in interfaceArgumentSerializer<EnumArgument<?>>
-
serializeToJson
- Specified by:
serializeToJson
in interfaceArgumentSerializer<EnumArgument<?>>
-