Class EncodedValueClipboardPacket

java.lang.Object
org.cyclops.cyclopscore.network.PacketBase
org.cyclops.cyclopscore.network.PacketCodec
org.cyclops.integrateddynamics.network.packet.EncodedValueClipboardPacket
All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload

public class EncodedValueClipboardPacket extends org.cyclops.cyclopscore.network.PacketCodec
Packet for placing an encoded value on the clipboard of a player.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.cyclops.cyclopscore.network.PacketCodec

    org.cyclops.cyclopscore.network.PacketCodec.ICodecAction

    Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B,T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, EncodedValueClipboardPacket>
     
    static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<EncodedValueClipboardPacket>
     

    Fields inherited from class org.cyclops.cyclopscore.network.PacketCodec

    fieldCache
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    EncodedValueClipboardPacket(net.minecraft.nbt.CompoundTag value, boolean compressed)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    actionClient(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
     
    void
    actionServer(net.minecraft.world.level.Level world, net.minecraft.server.level.ServerPlayer player)
     
    boolean
     

    Methods inherited from class org.cyclops.cyclopscore.network.PacketCodec

    decode, encode

    Methods inherited from class org.cyclops.cyclopscore.network.PacketBase

    getCodec, type, write

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    toVanillaClientbound, toVanillaServerbound
  • Field Details

    • ID

      public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<EncodedValueClipboardPacket> ID
    • CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, EncodedValueClipboardPacket> CODEC
  • Constructor Details

    • EncodedValueClipboardPacket

      public EncodedValueClipboardPacket()
    • EncodedValueClipboardPacket

      public EncodedValueClipboardPacket(net.minecraft.nbt.CompoundTag value, boolean compressed)
  • Method Details

    • isAsync

      public boolean isAsync()
      Specified by:
      isAsync in class org.cyclops.cyclopscore.network.PacketBase
    • actionClient

      public void actionClient(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
      Specified by:
      actionClient in class org.cyclops.cyclopscore.network.PacketBase
    • actionServer

      public void actionServer(net.minecraft.world.level.Level world, net.minecraft.server.level.ServerPlayer player)
      Specified by:
      actionServer in class org.cyclops.cyclopscore.network.PacketBase