Interface ArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>

All Known Implementing Classes:
ConstantArgumentSerializer, DoubleArgumentSerializer, EntityArgumentType.Serializer, FloatArgumentSerializer, IntegerArgumentSerializer, LongArgumentSerializer, ScoreHolderArgumentType.Serializer, StringArgumentSerializer

public interface ArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
Serializes an argument type to be sent to the client.
Mappings:
Namespace Name
official ft
intermediary net/minecraft/class_2314
named net/minecraft/command/argument/serialize/ArgumentSerializer
  • Method Details

    • toPacket

      void toPacket(T type, PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Lcom/mojang/brigadier/arguments/ArgumentType;Lph;)V
      intermediary method_10007 Lnet/minecraft/class_2314;method_10007(Lcom/mojang/brigadier/arguments/ArgumentType;Lnet/minecraft/class_2540;)V
      named toPacket Lnet/minecraft/command/argument/serialize/ArgumentSerializer;toPacket(Lcom/mojang/brigadier/arguments/ArgumentType;Lnet/minecraft/network/PacketByteBuf;)V
    • fromPacket

      T fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Lft;b(Lph;)Lcom/mojang/brigadier/arguments/ArgumentType;
      intermediary method_10005 Lnet/minecraft/class_2314;method_10005(Lnet/minecraft/class_2540;)Lcom/mojang/brigadier/arguments/ArgumentType;
      named fromPacket Lnet/minecraft/command/argument/serialize/ArgumentSerializer;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lcom/mojang/brigadier/arguments/ArgumentType;
    • toJson

      void toJson(T type, JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Lft;a(Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/google/gson/JsonObject;)V
      intermediary method_10006 Lnet/minecraft/class_2314;method_10006(Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/google/gson/JsonObject;)V
      named toJson Lnet/minecraft/command/argument/serialize/ArgumentSerializer;toJson(Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/google/gson/JsonObject;)V