Class StringArgumentSerializer
java.lang.Object
net.minecraft.commands.synchronization.brigadier.StringArgumentSerializer
- All Implemented Interfaces:
ArgumentTypeInfo<com.mojang.brigadier.arguments.StringArgumentType,
StringArgumentSerializer.Template>
public class StringArgumentSerializer
extends Object
implements ArgumentTypeInfo<com.mojang.brigadier.arguments.StringArgumentType,StringArgumentSerializer.Template>
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserializeFromNetwork
(FriendlyByteBuf p_235619_) void
serializeToJson
(StringArgumentSerializer.Template p_235613_, com.google.gson.JsonObject p_235614_) void
serializeToNetwork
(StringArgumentSerializer.Template p_235616_, FriendlyByteBuf p_235617_) unpack
(com.mojang.brigadier.arguments.StringArgumentType p_235605_)
-
Constructor Details
-
StringArgumentSerializer
public StringArgumentSerializer()
-
-
Method Details
-
serializeToNetwork
public void serializeToNetwork(StringArgumentSerializer.Template p_235616_, FriendlyByteBuf p_235617_) - Specified by:
serializeToNetwork
in interfaceArgumentTypeInfo<com.mojang.brigadier.arguments.StringArgumentType,
StringArgumentSerializer.Template>
-
deserializeFromNetwork
- Specified by:
deserializeFromNetwork
in interfaceArgumentTypeInfo<com.mojang.brigadier.arguments.StringArgumentType,
StringArgumentSerializer.Template>
-
serializeToJson
public void serializeToJson(StringArgumentSerializer.Template p_235613_, com.google.gson.JsonObject p_235614_) - Specified by:
serializeToJson
in interfaceArgumentTypeInfo<com.mojang.brigadier.arguments.StringArgumentType,
StringArgumentSerializer.Template>
-
unpack
public StringArgumentSerializer.Template unpack(com.mojang.brigadier.arguments.StringArgumentType p_235605_) - Specified by:
unpack
in interfaceArgumentTypeInfo<com.mojang.brigadier.arguments.StringArgumentType,
StringArgumentSerializer.Template>
-