Class SidedConnectPacket


  • public class SidedConnectPacket
    extends Packet
    Used to connect to the server.
    • 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