Package net.minecraft.command.arguments
Class ArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
- java.lang.Object
-
- net.minecraft.command.arguments.ArgumentSerializer<T>
-
- All Implemented Interfaces:
IArgumentSerializer<T>
public class ArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>> extends java.lang.Object implements IArgumentSerializer<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Supplier<T>
constructor
-
Constructor Summary
Constructors Constructor Description ArgumentSerializer(java.util.function.Supplier<T> p_i47957_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
deserializeFromNetwork(PacketBuffer p_197071_1_)
void
serializeToJson(T p_212244_1_, com.google.gson.JsonObject p_212244_2_)
void
serializeToNetwork(T p_197072_1_, PacketBuffer p_197072_2_)
-
-
-
Field Detail
-
constructor
private final java.util.function.Supplier<T extends com.mojang.brigadier.arguments.ArgumentType<?>> constructor
-
-
Constructor Detail
-
ArgumentSerializer
public ArgumentSerializer(java.util.function.Supplier<T> p_i47957_1_)
-
-
Method Detail
-
serializeToNetwork
public void serializeToNetwork(T p_197072_1_, PacketBuffer p_197072_2_)
- Specified by:
serializeToNetwork
in interfaceIArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
-
deserializeFromNetwork
public T deserializeFromNetwork(PacketBuffer p_197071_1_)
- Specified by:
deserializeFromNetwork
in interfaceIArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
-
serializeToJson
public void serializeToJson(T p_212244_1_, com.google.gson.JsonObject p_212244_2_)
- Specified by:
serializeToJson
in interfaceIArgumentSerializer<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
-
-