Class StringArgumentSerializer

java.lang.Object
net.minecraft.command.argument.serialize.StringArgumentSerializer
All Implemented Interfaces:
ArgumentSerializer<com.mojang.brigadier.arguments.StringArgumentType>

public class StringArgumentSerializer extends Object implements ArgumentSerializer<com.mojang.brigadier.arguments.StringArgumentType>
Mappings:
Namespace Name
official gc
intermediary net/minecraft/class_2332
named net/minecraft/command/argument/serialize/StringArgumentSerializer
  • Constructor Details

    • StringArgumentSerializer

      public StringArgumentSerializer()
  • Method Details

    • toPacket

      public void toPacket(com.mojang.brigadier.arguments.StringArgumentType stringArgumentType, PacketByteBuf packetByteBuf)
      Specified by:
      toPacket in interface ArgumentSerializer<com.mojang.brigadier.arguments.StringArgumentType>
      Mappings:
      Namespace Name Mixin selector
      official a Lgc;a(Lcom/mojang/brigadier/arguments/StringArgumentType;Lph;)V
      intermediary method_10053 Lnet/minecraft/class_2332;method_10053(Lcom/mojang/brigadier/arguments/StringArgumentType;Lnet/minecraft/class_2540;)V
      named toPacket Lnet/minecraft/command/argument/serialize/StringArgumentSerializer;toPacket(Lcom/mojang/brigadier/arguments/StringArgumentType;Lnet/minecraft/network/PacketByteBuf;)V
    • fromPacket

      public com.mojang.brigadier.arguments.StringArgumentType fromPacket(PacketByteBuf packetByteBuf)
      Specified by:
      fromPacket in interface ArgumentSerializer<com.mojang.brigadier.arguments.StringArgumentType>
      Mappings:
      Namespace Name Mixin selector
      official a Lgc;a(Lph;)Lcom/mojang/brigadier/arguments/StringArgumentType;
      intermediary method_10052 Lnet/minecraft/class_2332;method_10052(Lnet/minecraft/class_2540;)Lcom/mojang/brigadier/arguments/StringArgumentType;
      named fromPacket Lnet/minecraft/command/argument/serialize/StringArgumentSerializer;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lcom/mojang/brigadier/arguments/StringArgumentType;
    • toJson

      public void toJson(com.mojang.brigadier.arguments.StringArgumentType stringArgumentType, JsonObject jsonObject)
      Specified by:
      toJson in interface ArgumentSerializer<com.mojang.brigadier.arguments.StringArgumentType>
      Mappings:
      Namespace Name Mixin selector
      official a Lgc;a(Lcom/mojang/brigadier/arguments/StringArgumentType;Lcom/google/gson/JsonObject;)V
      intermediary method_10051 Lnet/minecraft/class_2332;method_10051(Lcom/mojang/brigadier/arguments/StringArgumentType;Lcom/google/gson/JsonObject;)V
      named toJson Lnet/minecraft/command/argument/serialize/StringArgumentSerializer;toJson(Lcom/mojang/brigadier/arguments/StringArgumentType;Lcom/google/gson/JsonObject;)V