4460dbb
Branches > main > 4460dbb > files / src / net / bowmap / transport / writers.clj
Add clientbound spawn entity packet
Commit: 4460dbb9d76f67b824a6feecc1f6715f2575208c
Parent: 958c4ff
1 changed file:
src/net/bowmap/protocol/packet/clientbound.clj view file
@@ -1,13 +1,13 @@ (ns net.bowmap.protocol.packet.clientbound (:require- [net.bowmap.transport.writers :as write- :refer [bit-mask-> boolean-> byte-> chunk-data-> context-optional->- double-> enum-> float-> game-profile-> identifier-> int-> json->- light-data-> list-> long-> nbt-> optional-> or-> location->- string-> ubyte-> uuid-> varint->]] [net.bowmap.protocol.registry :as reg]+ [net.bowmap.server.gamemode :as gamemode] [net.bowmap.transport.phase :as phase]- [net.bowmap.server.gamemode :as gamemode]))+ [net.bowmap.transport.writers :as write+ :refer [angle-> bit-mask-> boolean-> byte-> chunk-data->+ context-optional-> double-> enum-> float-> game-profile->+ identifier-> int-> json-> light-data-> list-> location-> long->+ lpvec3-> nbt-> optional-> or-> string-> ubyte-> uuid-> varint->]])) (def packets {::status-response [:response "Response to serverbound ::status-request" json->]@@ -60,6 +60,18 @@ ;; And others too but we don't talk about those ::game-event [:event (enum-> byte-> {3 :set-gamemode 13 :wait-for-chunks}) :value (or-> float-> 0)]+ ::spawn-entity [:entity-id varint->+ :uuid uuid->+ ; Is this type built-in?+ :type varint->+ :x double->+ :y double->+ :z double->+ :velocity lpvec3->+ :pitch angle->+ :yaw angle->+ :head-yaw angle->+ :data varint->] ::chunk-data-and-update-light [:chunk-x int-> :chunk-z int-> :chunk-data chunk-data->