net.minecraft.command.argument.serialize

public class ConstantArgumentSerializer<A extends com.mojang.brigadier.arguments.ArgumentType<?>>

implements ArgumentSerializer<A, ConstantArgumentSerializer<A>.Properties>

net.minecraft.commands.synchronization.SingletonArgumentInfo
net.minecraft.commands.synchronization.SingletonArgumentInfo
net.minecraft.class_2319
net.minecraft.command.argument.serialize.ConstantArgumentSerializer

Field summary

Modifier and TypeField
private final ConstantArgumentSerializer<A>.Properties
template
template
field_37978
properties

Constructor summary

ModifierConstructor
private (Function<CommandRegistryAccess, A> typeSupplier)

Method summary

Modifier and TypeMethod
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> ConstantArgumentSerializer<T>
contextFree(Supplier<T> constructor)
contextFree(Supplier<T> constructor)
method_41999(Supplier<T> arg0)
of(Supplier<T> typeSupplier)
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> ConstantArgumentSerializer<T>
contextAware(Function<CommandBuildContext, T> constructor)
contextAware(Function<CommandBuildContext, T> constructor)
method_41998(Function<class_7157, T> arg0)
of(Function<CommandRegistryAccess, T> typeSupplier)
public void
serializeToNetwork(SingletonArgumentInfo<A>.Template template, FriendlyByteBuf out)
serializeToNetwork(SingletonArgumentInfo<A>.Template template, FriendlyByteBuf out)
method_41997(class_2319<A>.class_7219 arg0, class_2540 arg1)
writePacket(ConstantArgumentSerializer<A>.Properties arg0, PacketByteBuf arg1)
public void
serializeToJson(SingletonArgumentInfo<A>.Template template, com.google.gson.JsonObject out)
serializeToJson(SingletonArgumentInfo<A>.Template template, com.google.gson.JsonObject out)
method_41996(class_2319<A>.class_7219 arg0, com.google.gson.JsonObject arg1)
writeJson(ConstantArgumentSerializer<A>.Properties arg0, com.google.gson.JsonObject arg1)
public ConstantArgumentSerializer<A>.Properties
deserializeFromNetwork(FriendlyByteBuf in)
deserializeFromNetwork(FriendlyByteBuf in)
method_10005(class_2540 arg0)
fromPacket(PacketByteBuf arg0)
public ConstantArgumentSerializer<A>.Properties
unpack(A argument)
unpack(A argument)
method_41726(A arg0)
getArgumentTypeProperties(A arg0)