Interface ArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends ArgumentSerializer.ArgumentTypeProperties<A>>
- All Known Implementing Classes:
ConstantArgumentSerializer
,DoubleArgumentSerializer
,EntityArgumentType.Serializer
,FloatArgumentSerializer
,IntegerArgumentSerializer
,LongArgumentSerializer
,RegistryEntryArgumentType.Serializer
,RegistryEntryPredicateArgumentType.Serializer
,RegistryKeyArgumentType.Serializer
,RegistryPredicateArgumentType.Serializer
,ScoreHolderArgumentType.Serializer
,StringArgumentSerializer
public interface ArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends ArgumentSerializer.ArgumentTypeProperties<A>>
Serializes an argument type to be sent to the client.
- Mappings:
Namespace Name official gb
intermediary net/minecraft/class_2314
named net/minecraft/command/argument/serialize/ArgumentSerializer
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
ArgumentSerializer.ArgumentTypeProperties<A extends com.mojang.brigadier.arguments.ArgumentType<?>>
-
Method Summary
Modifier and TypeMethodDescriptionfromPacket
(PacketByteBuf buf) getArgumentTypeProperties
(A argumentType) void
writeJson
(T properties, JsonObject json) void
writePacket
(T properties, PacketByteBuf buf)
-
Method Details
-
writePacket
- Mappings:
Namespace Name Mixin selector official a
Lgb;a(Lgb$a;Lsd;)V
intermediary method_10007
Lnet/minecraft/class_2314;method_10007(Lnet/minecraft/class_2314$class_7217;Lnet/minecraft/class_2540;)V
named writePacket
Lnet/minecraft/command/argument/serialize/ArgumentSerializer;writePacket(Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;Lnet/minecraft/network/PacketByteBuf;)V
-
fromPacket
- Mappings:
Namespace Name Mixin selector official b
Lgb;b(Lsd;)Lgb$a;
intermediary method_10005
Lnet/minecraft/class_2314;method_10005(Lnet/minecraft/class_2540;)Lnet/minecraft/class_2314$class_7217;
named fromPacket
Lnet/minecraft/command/argument/serialize/ArgumentSerializer;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;
-
writeJson
- Mappings:
Namespace Name Mixin selector official a
Lgb;a(Lgb$a;Lcom/google/gson/JsonObject;)V
intermediary method_10006
Lnet/minecraft/class_2314;method_10006(Lnet/minecraft/class_2314$class_7217;Lcom/google/gson/JsonObject;)V
named writeJson
Lnet/minecraft/command/argument/serialize/ArgumentSerializer;writeJson(Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;Lcom/google/gson/JsonObject;)V
-
getArgumentTypeProperties
- Mappings:
Namespace Name Mixin selector official a
Lgb;a(Lcom/mojang/brigadier/arguments/ArgumentType;)Lgb$a;
intermediary method_41726
Lnet/minecraft/class_2314;method_41726(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/class_2314$class_7217;
named getArgumentTypeProperties
Lnet/minecraft/command/argument/serialize/ArgumentSerializer;getArgumentTypeProperties(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;
-