b557414

Branches > facts > b557414 > files / src / net / bowmap

Add recipe book packets

Grahp, 2026-08-19

Commit: b55741413013e9112a38d8df7808e22ebb6c645e
Parent: 62fd35b

2 changed files:

src/net/bowmap/network/packets/clientbound.clj modified (view file)

@@ -203,6 +203,14 @@    ::registry-data [::reg/id identifier->                     ::reg/entries (list-> [::reg/entry-id identifier->                                            ::reg/entry-data (optional-> nbt->)])]+   ::recipe-book-settings [:crafting-recipe-book-open? boolean->+                           :crafting-recipe-book-filter-active? boolean->+                           :smelting-recipe-book-open? boolean->+                           :smelting-recipe-book-filter-active? boolean->+                           :blast-furnace-recipe-book-open? boolean->+                           :blast-furnace-recipe-book-filter-active? boolean->+                           :smoker-recipe-book-open? boolean->+                           :smoker-recipe-book-filter-active? boolean->]    ::keep-alive [:id long->]    ::finish-config []    ::login [:entity-id int->

src/net/bowmap/network/packets/serverbound.clj modified (view file)

@@ -2,8 +2,8 @@   (:require    [net.bowmap.network.packet :as pk]    [net.bowmap.network.packets.readers-    :refer [->bit-mask ->byte ->double ->enum ->float ->identifier ->int-            ->list ->long ->optional ->position ->short ->string ->ubyte+    :refer [->bit-mask ->boolean ->byte ->double ->enum ->float ->identifier+            ->int ->list ->long ->optional ->position ->short ->string ->ubyte             ->uuid ->varint coerce]]    [net.bowmap.network.state :as state])) @@ -214,7 +214,9 @@                      :jump-boost ->varint]    ::player-input [:flags (->bit-mask ->ubyte [:forward :backward :left :right :jump :sneak :sprint])]    ::player-loaded []-   #_::change-recipe-book-settings+   ::change-recipe-book-settings [:id (->enum ->varint [:crafting :furnace :blast-furnace :smoker])+                                  :book-open? ->boolean+                                  :filter-active? ->boolean]    #_::set-seen-recipe    #_::rename-item    #_::seen-advancements