package Ġspatial craft ing ĊĊ Ċ import Ġnet . fabric mc . fabric . api . client . item group . Fabric ItemGroup Builder Ċ import Ġnet . fabric mc . fabric . api . client . model . Model Loading Registry Ċ import Ġnet . fabric mc . fabric . api . client . model . Model Variant Provider Ċ import Ġnet . minecraft . client . render . model . B aked Model Ċ import Ġnet . minecraft . client . render . model . Model B ake Settings Ċ import Ġnet . minecraft . client . render . model . Model Loader Ċ import Ġnet . minecraft . client . render . model . Un b aked Model Ċ import Ġnet . minecraft . client . texture . Sprite Ċ import Ġnet . minecraft . item . ItemGroup Ċ import Ġnet . minecraft . util . Identifier Ċ import Ġnet . minecraft . util . registry . Registry Ċ import Ġspatial craft ing . client . Sounds Ċ import Ġspatial craft ing . client . key binding . Recipe Creator Key Binding Ċ import Ġspatial craft ing . cr after . Cr after Piece Entity Ċ import Ġspatial craft ing . cr after . Cr after s Pieces Ċ import Ġspatial craft ing . ho log ram . Ho log ram B aked Model Ċ import Ġspatial craft ing . ho log ram . Ho log ram Block Ċ import Ġspatial craft ing . ho log ram . Ho log ram Block Entity Ċ import Ġspatial craft ing . ho log ram . Ho log ram Block Entity Renderer Ċ import Ġspatial craft ing . item . De cept ively Small S word Ċ import Ġspatial craft ing . item . Point y Stick Ċ import Ġspatial craft ing . item . Shape less S word Ċ import Ġspatial craft ing . recipe .* Ċ import Ġspatial craft ing . util .* Ċ import Ġjava . util . function . Function ĊĊ Ċ // TODO : Ġneed Ġexamples Ġfor : Ċ // Ġpower ĊĊĊ Ċ // TODO : Ġask Ġto Ġadd Ġto ĠA OF Ċ // TODO : Ġpower Ġconsumption Ċ // TODO : Ġconfig Ġfile : Ġcan Ġstore Ġenergy Ċ // TODO : Ġremove Ġuseless Ġsh it Ġfor Ġtutorials Ġand Ġsuch , Ġgo Ġthrough Ġeverything Ġand Ġmake Ġsure Ġits Ġneeded Ċ // TODO : Ġdocument Ġpackets : Ċ // Ġ- ĠS 2 C Ġ- Ġ ĠNeed Ġto Ġdo Ġtask Queue Ġthing , Ġneeds Ġto Ġbe Ġregistered Ġon Ġthe Ġclient Ġonly Ċ // Ġ- ĠC 2 S Ġ- ĠNeed Ġto Ġdo Ġtask Queue Ġthing Ġand Ġbew are Ġof Ġvul ns Ġ( is Loaded , Ġetc ) Ċ // TODO : Ġdocument Ġrecipes Ġ( remember Ġthat Ġyou Ġneed Ġto Ġimplement Ġread Ġand Ġwrite Ġproperly ...) Ċ // TODO : Ġbetter Ġexample Ġrecipes Ġ( some Ġop Ġitems Ġ- Ġs word Ġof Ġyou Ġwant Ġto Ġcraft Ġthis Ġetc ) Ċ Ċ const Ġval ĠMod Id Ġ= Ġ" spatial craft ing " Ċ Ċ val ĠGui Id Ġ= Ġmod Id (" test _ gui ") Ċ Ċ const Ġval ĠMax Cr after Size Ġ= Ġ 5 Ċ const Ġval ĠSm allest Cr after Size Ġ= Ġ 2 Ċ Ċ val ĠSpatial Craft ing ItemGroup : ĠItem Group Ġ Ġ= ĠFabric ItemGroup Builder . build ( ĊĠĠĠĠĠĠĠ ĠIdentifier ( Mod Id , Ġ" spatial _ craft ing ") Ċ ) Ġ{ ĠCr after s Pieces . getValue ( Sm allest Cr after Size ). item Stack Ġ} ĊĊ Ċ fun Ġmod Id ( str : ĠString ) Ġ= ĠIdentifier ( Mod Id , Ġstr ) Ċ Ċ private Ġconst Ġval ĠHo log ram Id Ġ= Ġ" ho log ram " Ċ Ċ @ Suppress (" unused ") Ċ fun Ġinit () Ġ= Ġinit Common ( Mod Id , Ġgroup Ġ= ĠSpatial Craft ing ItemGroup ) Ġ{ ĊĊĠĠĠ Ġregister Block sWith Item Blocks Ġ{ ĊĠĠĠĠĠĠĠ Ġfor Ġ( cr after Piece Ġin ĠCr after s Pieces . values ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcr after Piece Ġwith Id Ġ" x ${ cr after Piece . size } cr after _ piece " ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġregister To ( Registry . ITEM ) Ġ{ ĊĠĠĠĠĠĠĠ ĠShape less S word Ġwith Id Ġ" shape less _ s word " ĊĠĠĠĠĠĠĠ ĠDe cept ively Small S word Ġwith Id Ġ" de cept ively _ small _ s word " ĊĠĠĠĠĠĠĠ ĠPoint y Stick Ġwith Id Ġ" point y _ stick " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġregister To ( Registry . BLOCK ) Ġ{ ĊĠĠĠĠĠĠĠ ĠHo log ram Block Ġwith Id ĠHo log ram Id ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġregister To ( Registry . BLOCK _ ENTITY ) Ġ{ ĊĠĠĠĠĠĠĠ ĠCr after Piece Entity . Type Ġwith Id Ġ" cr after _ piece _ entity " ĊĠĠĠĠĠĠĠ ĠHo log ram Block Entity . Type Ġwith Id Ġ" ho log ram _ entity " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġregister To ( Registry . RE CI PE _ SERIAL IZER ) Ġ{ ĊĠĠĠĠĠĠĠ ĠSh aped Spatial Recipe Ġwith Id ĠIdentifier ( Sh aped Recipe Type ) ĊĠĠĠĠĠĠĠ ĠShape less Spatial Recipe Ġwith Id ĠIdentifier ( Shape less Recipe Type ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġregister To ( Registry . RE CI PE _ TYPE ) Ġ{ ĊĠĠĠĠĠĠĠ ĠSpatial Recipe . Type Ġwith Id ĠSpatial Recipe . Type . Id ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġregister To ( Registry . SOUND _ EVENT ) Ġ{ ĊĠĠĠĠĠĠĠ ĠSounds . Craft End Ġwith Id ĠSounds . Craft End Id ĊĠĠĠĠĠĠĠ ĠSounds . Craft Loop Ġwith Id ĠSounds . Craft Loop Id ĊĠĠĠĠĠĠĠ ĠSounds . Craft Start Ġwith Id ĠSounds . Craft Start Id ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġregister C 2 S ( Packets . Start Recipe Help . serializer ()) ĊĠĠĠ Ġregister C 2 S ( Packets . Auto Craft . serializer ()) ĊĠĠĠ Ġregister C 2 S ( Packets . Change Active Layer . serializer ()) ĊĠĠĠ Ġregister C 2 S ( Packets . Stop Recipe Help . serializer ()) ĊĊĊĊ Ċ } ĊĊ Ċ @ Suppress (" unused ") Ċ fun Ġinit Client () Ġ= Ġinit Client Only ( Mod Id ) Ġ{ ĊĊĠĠĠ ĠModel Loading Registry . INSTANCE . register Variant Provider Ġ{ ĊĠĠĠĠĠĠĠ ĠModel Variant Provider Ġ{ Ġmodel Id , Ġ_ Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( model Id . namespace Ġ== ĠMod Id Ġ&& Ġmodel Id . path Ġ== ĠHo log ram Id ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġobject Ġ: ĠU nb aked Model Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun Ġb ake ( model Loader : ĠModel Loader , Ġsprite Function : ĠFunction < Identifier , ĠSprite >, Ġsettings : ĠModel B ake Settings ): ĠB aked Model Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠHo log ram B aked Model () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun ĠgetModel Dependencies (): ĠList < Identifier > Ġ= ĠlistOf () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun Ġget Texture Dependencies ( un b aked Model Function : ĠFunction < Identifier , ĠU nb aked Model >, Ġstrings : ĠMutable Set < String >): ĠList < Identifier > Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠlistOf ( Ho log ram B aked Model . Texture ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġnull ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġregister S 2 C ( Packets . Assign Mult ib lock State . serializer ()) ĊĠĠĠ Ġregister S 2 C ( Packets . Un assign Mult ib lock State . serializer ()) ĊĠĠĠ Ġregister S 2 C ( Packets . Stop Recipe Help . serializer ()) ĊĠĠĠ Ġregister S 2 C ( Packets . Update Ho log ram Content . serializer ()) ĊĠĠĠ Ġregister S 2 C ( Packets . Start Craft ing Particles . serializer ()) ĊĠĠĠ Ġregister S 2 C ( Packets . Item Movement From Player To Mult ib lock Particles . serializer ()) ĊĊĠĠĠ Ġregister ( Ho log ram Block Entity Renderer ) ĊĠĠĠ Ġregister ( Recipe Creator Key Binding ) Ċ Ċ } ĊĊĊ