packet.clj
Branches > main > 03475ae > files / src / net / bowmap / server / packet / packet.clj
(ns net.bowmap.server.packet.packet
"A Minecraft protocol packet sent either to the server (serverbound),
or to the client (clientbound).
See https://minecraft.wiki/w/Java_Edition_protocol/Packets"
(:require
[clojure.set :as set]
[clojure.spec.alpha :as s]
[net.bowmap.server.packet.clientbound :as clientbound]
[net.bowmap.server.packet.serverbound :as serverbound]))
(s/def ::id (set/union clientbound/ids serverbound/ids))
(s/def ::packet (s/keys :opt [::id]))