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 Details

  • Method Details

    • serializeToNetwork

      public void serializeToNetwork(net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template type, net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      serializeToNetwork in interface net.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:
      deserializeFromNetwork in interface net.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:
      serializeToJson in interface net.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:
      unpack in interface net.minecraft.commands.synchronization.ArgumentTypeInfo<ComponentArgumentType,net.kyori.adventure.platform.fabric.impl.ComponentArgumentTypeSerializer.Template>