Class SidedConnectPacket

  • All Implemented Interfaces:
    Serializable, top.focess.util.serialize.FocessSerializable

    public class SidedConnectPacket
    extends Packet
    Used to connect to the server.
    See Also:
    Serialized Form
    • Constructor Detail

      • SidedConnectPacket

        public SidedConnectPacket​(String name)
        Constructs a SidedConnectPacket
        Parameters:
        name - the client name
    • Method Detail

      • getName

        public String getName()
      • getId

        public int getId()
        Description copied from class: Packet
        Get the packet id
        Specified by:
        getId in class Packet
        Returns:
        the packet id