packet.clj

Branches > main > 45a2311 > files / src / net / bowmap / network / packet.clj

(ns net.bowmap.network.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 %))