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
  • Method Details

    • writePacket

      void writePacket(T properties, PacketByteBuf buf)
      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

      T fromPacket(PacketByteBuf buf)
      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

      void writeJson(T properties, JsonObject json)
      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

      T getArgumentTypeProperties(A argumentType)
      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;