packet.clj
Branches > refactor/use-spec-1 > 8172c84 > files / src / net / bowmap / network / packet.clj
(ns net.bowmap.network.packet
(:require
[dev.grahp.spec :as ss]))
; The serialized form of a message, called a packet by everyone else :p
; See https://minecraft.wiki/w/Java_Edition_protocol/Packets
(ss/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?)