packet.clj

Branches > main > e1b1ab0 > files / src / net / bowmap / network / protocol / packet.clj

(ns net.bowmap.network.protocol.packet
  (:require
   [dev.grahp.spec :as S])
  (:import
   [io.netty.buffer ByteBuf]))

; The serialized form of a message, called a packet by everyone else :p
; See https://minecraft.wiki/w/Java_Edition_protocol/Packets

; TODO rename to a frame, packet is still an overloaded term
(S/def ::packet #(instance? ByteBuf %))