Class EnumArgument.Serializer
- java.lang.Object
-
- net.minecraftforge.server.command.EnumArgument.Serializer
-
- All Implemented Interfaces:
IArgumentSerializer<EnumArgument<?>>
- Enclosing class:
- EnumArgument<T extends java.lang.Enum<T>>
public static class EnumArgument.Serializer extends java.lang.Object implements IArgumentSerializer<EnumArgument<?>>
-
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumArgument<?>
deserializeFromNetwork(PacketBuffer buffer)
void
serializeToJson(EnumArgument<?> argument, com.google.gson.JsonObject json)
void
serializeToNetwork(EnumArgument<?> argument, PacketBuffer buffer)
-
-
-
Method Detail
-
serializeToNetwork
public void serializeToNetwork(EnumArgument<?> argument, PacketBuffer buffer)
- Specified by:
serializeToNetwork
in interfaceIArgumentSerializer<EnumArgument<?>>
-
deserializeFromNetwork
public EnumArgument<?> deserializeFromNetwork(PacketBuffer buffer)
- Specified by:
deserializeFromNetwork
in interfaceIArgumentSerializer<EnumArgument<?>>
-
serializeToJson
public void serializeToJson(EnumArgument<?> argument, com.google.gson.JsonObject json)
- Specified by:
serializeToJson
in interfaceIArgumentSerializer<EnumArgument<?>>
-
-