Class ADPPacket

    • Constructor Detail

      • ADPPacket

        public ADPPacket()
    • Method Detail

      • getName

        @NotNull
        public @NotNull String getName()
        Get the name of the packet. Usually the name of the packet type.
        Returns:
        the name of the packet
      • build

        public byte[] build()
                     throws IOException
        Serialize the packet as byte array
        Returns:
        the result as byte array
        Throws:
        IOException - if the deserialization fails
      • setVersion

        @NotNull
        public @NotNull ADPPacket setVersion​(String version)
      • setType

        @NotNull
        public @NotNull ADPPacket setType​(Enum<?> type)