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

    • toPacket

      void toPacket(T t, PacketByteBuf packetByteBuf)
      Mappings:
      Namespace Name Mixin selector
      official a Lfs;a(Lcom/mojang/brigadier/arguments/ArgumentType;Log;)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 packetByteBuf)
      Mappings:
      Namespace Name Mixin selector
      official b Lfs;b(Log;)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 t, JsonObject jsonObject)
      Mappings:
      Namespace Name Mixin selector
      official a Lfs;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