Class SendPacket

java.lang.Object
megamek.common.net.connections.SendPacket
All Implemented Interfaces:
INetworkPacket

public class SendPacket extends Object implements INetworkPacket
  • Constructor Details

  • Method Details

    • marshallingType

      public int marshallingType()
      Specified by:
      marshallingType in interface INetworkPacket
      Returns:
      The data marshalling type.
    • data

      public byte[] data()
      Specified by:
      data in interface INetworkPacket
      Returns:
      The packet data.
    • isCompressed

      public boolean isCompressed()
      Specified by:
      isCompressed in interface INetworkPacket
      Returns:
      True if the data is compressed.
    • getCommand

      public PacketCommand getCommand()