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, RegistryEntryPredicateArgumentType.Serializer, RegistryEntryReferenceArgumentType.Serializer, RegistryKeyArgumentType.Serializer, RegistryPredicateArgumentType.Serializer, ScoreHolderArgumentType.Serializer, StringArgumentSerializer, TimeArgumentType.Serializer

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
named net/minecraft/command/argument/serialize/ArgumentSerializer
intermediary net/minecraft/class_2314
official is
  • Method Details

    • writePacket

      void writePacket(T properties, PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named writePacket Lnet/minecraft/command/argument/serialize/ArgumentSerializer;writePacket(Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_10007 Lnet/minecraft/class_2314;method_10007(Lnet/minecraft/class_2314$class_7217;Lnet/minecraft/class_2540;)V
      official a Lis;a(Lis$a;Lws;)V
    • fromPacket

      T fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named fromPacket Lnet/minecraft/command/argument/serialize/ArgumentSerializer;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;
      intermediary method_10005 Lnet/minecraft/class_2314;method_10005(Lnet/minecraft/class_2540;)Lnet/minecraft/class_2314$class_7217;
      official b Lis;b(Lws;)Lis$a;
    • writeJson

      void writeJson(T properties, JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      named writeJson Lnet/minecraft/command/argument/serialize/ArgumentSerializer;writeJson(Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;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
      official a Lis;a(Lis$a;Lcom/google/gson/JsonObject;)V
    • getArgumentTypeProperties

      T getArgumentTypeProperties(A argumentType)
      Mappings:
      Namespace Name Mixin selector
      named getArgumentTypeProperties Lnet/minecraft/command/argument/serialize/ArgumentSerializer;getArgumentTypeProperties(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/command/argument/serialize/ArgumentSerializer$ArgumentTypeProperties;
      intermediary method_41726 Lnet/minecraft/class_2314;method_41726(Lcom/mojang/brigadier/arguments/ArgumentType;)Lnet/minecraft/class_2314$class_7217;
      official a Lis;a(Lcom/mojang/brigadier/arguments/ArgumentType;)Lis$a;