Package org.moddingx.libx.command
Class EnumArgument2.Info
java.lang.Object
org.moddingx.libx.command.EnumArgument2.Info
- All Implemented Interfaces:
net.minecraft.commands.synchronization.ArgumentTypeInfo<EnumArgument2<?>,
EnumArgument2.Info.Template>
- Enclosing class:
- EnumArgument2<T extends Enum<T>>
public static class EnumArgument2.Info
extends Object
implements net.minecraft.commands.synchronization.ArgumentTypeInfo<EnumArgument2<?>,EnumArgument2.Info.Template>
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserializeFromNetwork
(net.minecraft.network.FriendlyByteBuf buffer) void
serializeToJson
(EnumArgument2.Info.Template template, JsonObject json) void
serializeToNetwork
(EnumArgument2.Info.Template template, net.minecraft.network.FriendlyByteBuf buffer) unpack
(EnumArgument2<?> arg)
-
Field Details
-
INSTANCE
-
-
Method Details
-
serializeToNetwork
public void serializeToNetwork(@Nonnull EnumArgument2.Info.Template template, @Nonnull net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
serializeToNetwork
in interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<EnumArgument2<?>,
EnumArgument2.Info.Template>
-
deserializeFromNetwork
@Nonnull public EnumArgument2.Info.Template deserializeFromNetwork(@Nonnull net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
deserializeFromNetwork
in interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<EnumArgument2<?>,
EnumArgument2.Info.Template>
-
serializeToJson
public void serializeToJson(@Nonnull EnumArgument2.Info.Template template, @Nonnull JsonObject json) - Specified by:
serializeToJson
in interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<EnumArgument2<?>,
EnumArgument2.Info.Template>
-
unpack
- Specified by:
unpack
in interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<EnumArgument2<?>,
EnumArgument2.Info.Template>
-