Class ComponentArgumentTypeSerializer
java.lang.Object
net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer
- All Implemented Interfaces:
net.minecraft.commands.synchronization.ArgumentTypeInfo<ComponentArgumentType,net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template>
public final class ComponentArgumentTypeSerializer
extends Object
implements net.minecraft.commands.synchronization.ArgumentTypeInfo<ComponentArgumentType,net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.TemplatedeserializeFromNetwork(net.minecraft.network.FriendlyByteBuf buffer) voidserializeToJson(net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template type, com.google.gson.JsonObject json) voidserializeToNetwork(net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template type, net.minecraft.network.FriendlyByteBuf buffer) net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Templateunpack(ComponentArgumentType argumentType)
-
Field Details
-
INSTANCE
-
-
Method Details
-
serializeToNetwork
public void serializeToNetwork(net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template type, net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
serializeToNetworkin interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<ComponentArgumentType,net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template>
-
deserializeFromNetwork
public net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template deserializeFromNetwork(net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
deserializeFromNetworkin interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<ComponentArgumentType,net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template>
-
serializeToJson
public void serializeToJson(net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template type, com.google.gson.JsonObject json) - Specified by:
serializeToJsonin interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<ComponentArgumentType,net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template>
-
unpack
public net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template unpack(ComponentArgumentType argumentType) - Specified by:
unpackin interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<ComponentArgumentType,net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template>
-