packet.clj
Branches > client-handling-rewrite > 15f3896 > files / src / net / bowmap / network / packet.clj
(ns net.bowmap.network.packet
(:require
[dev.grahp.spec :as S]))
; The serialized form of a message, called a packet by everyone else :p
; See https://minecraft.wiki/w/Java_Edition_protocol/Packets
(S/def ::id
"Protocol id of a packet, i.e. 0x00, 0x80, etc.
Numeric ids are NOT unique across connection states! See the wiki"
pos-int?)