/* Ċ Copyright Ġ 2 0 2 2 , Ġn gh o Ċ Ċ Permission Ġis Ġhereby Ġgranted , Ġfree Ġof Ġcharge , Ġto Ġany Ġperson Ġobtaining Ġa Ġcopy Ġof Ġthis Ġsoftware Ġand Ġassociated Ġdocumentation Ġfiles Ġ( the Ġ" Software "), Ġto Ġdeal Ġin Ġthe ĠSoftware Ġwithout Ġrestriction , Ġincluding Ġwithout Ġlimitation Ġthe Ġrights Ġto Ġuse , Ġcopy , Ġmodify , Ġmerge , Ġpublish , Ġdistribute , Ġsublicense , Ġand / or Ġsell Ġcopies Ġof Ġthe ĠSoftware , Ġand Ġto Ġpermit Ġpersons Ġto Ġwhom Ġthe ĠSoftware Ġis Ġfurnished Ġto Ġdo Ġso , Ġsubject Ġto Ġthe Ġfollowing Ġconditions : Ċ Ċ The Ġabove Ġcopyright Ġnotice Ġand Ġthis Ġpermission Ġnotice Ġshall Ġbe Ġincluded Ġin Ġall Ġcopies Ġor Ġsubstantial Ġportions Ġof Ġthe ĠSoftware . Ċ Ċ THE ĠSOFTWARE ĠIS ĠPROVIDED Ġ" AS ĠIS ", ĠWITHOUT ĠWARRANTY ĠOF ĠANY ĠKIND , ĠEXPRESS ĠOR ĠIMPLIED , ĠINCLUDING ĠBUT ĠNOT ĠLIMITED ĠTO ĠTHE ĠWARRANTIES ĠOF ĠMERCHANTABILITY , ĠFITNESS ĠFOR ĠA ĠPARTICULAR ĠPURPOSE ĠAND ĠNONINFRINGEMENT . ĠIN ĠNO ĠEVENT ĠSHALL ĠTHE ĠAUTHORS ĠOR ĠCOPYRIGHT ĠHOLDERS ĠBE ĠLIABLE ĠFOR ĠANY ĠCLAIM , ĠDAMAGES ĠOR ĠOTHER ĠLIABILITY , ĠWHETHER ĠIN ĠAN ĠACTION ĠOF ĠCONTRACT , ĠTORT ĠOR ĠOTHERWISE , ĠARISING ĠFROM , ĠOUT ĠOF ĠOR ĠIN ĠCONNECTION ĠWITH ĠTHE ĠSOFTWARE ĠOR ĠTHE ĠUSE ĠOR ĠOTHER ĠDEALINGS ĠIN ĠTHE ĠSOFTWARE . Ċ Ġ*/ Ċ Ċ package Ġcom . github . dev ng ho . spaced out . build able Ċ Ċ import Ġnet . ky ori . ad venture . text . Component Ċ import Ġnet . ky ori . ad venture . text . format . TextColor Ċ import Ġnet . ky ori . ad venture . text . format . Text Decoration Ċ import Ġorg . bukkit . Bu kkit Ċ import Ġorg . bukkit . Name spaced Key Ċ import Ġorg . bukkit . inventory . ItemStack Ċ import Ġorg . bukkit . inventory . Sh aped Recipe Ċ Ċ @ Suppress (" unused ") Ċ object ĠBuild able Manager Ġ{ ĊĠĠĠ Ġval Ġbuilt : ĠMutable List < Build able > Ġ= Ġmutable ListOf () ĊĠĠĠ Ġval Ġbuild able : ĠMutable List < Build able > Ġ= Ġmutable ListOf () ĊĠĠĠ Ġfun Ġregister ( build able : ĠBuild able ){ ĊĠĠĠĠĠĠĠ Ġthis . build able Ġ+= Ġbuild able ĊĠĠĠĠĠĠĠ Ġval Ġrecipe Ġ= ĠSh aped Recipe ( Name spaced Key ( com . github . dev ng ho . spaced out . Instance . plugin , Ġbuild able . code Name ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠItemStack ( build able . place Item Material ). apply Ġ{ Ġitem Meta Ġ= Ġitem Meta . apply Ġ{ ĠdisplayName ( Component . text ( build able . place ItemName ). decoration ( Text Decoration . ITAL IC , Ġfalse )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlo re ( listOf ( Component . text (" from . Ġ${ build able . added Addon . name } "). color ( TextColor . color ( 1 2 7 , Ġ 1 2 7 , Ġ 1 2 7 )))) } Ġ}) ĊĠĠĠĠĠĠĠ Ġrecipe . shape ( build able . recipe Shape [ 0 ], Ġbuild able . recipe Shape [ 1 ], Ġbuild able . recipe Shape [ 2 ]) ĊĠĠĠĠĠĠĠ Ġbuild able . recipe Item . forEach Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrecipe . set Ingredient ( it . first , Ġit . second ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ ĠBu kkit . add Recipe ( recipe ) ĊĠĠĠ Ġ} Ċ }