/* Ċ Ġ* ĠThis Ġfile Ġis Ġpart Ġof ĠL an tern Server , Ġlicensed Ġunder Ġthe ĠMIT ĠLicense Ġ( MIT ). Ċ Ġ* Ċ Ġ* ĠCopyright Ġ( c ) ĠL an tern Power ed Ġ< https :// www . lan tern powered . org > Ċ Ġ* ĠCopyright Ġ( c ) ĠSp onge Power ed Ġ< https :// www . spongepowered . org > Ċ Ġ* ĠCopyright Ġ( c ) Ġcontributors Ċ Ġ* Ċ Ġ* Ġ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 Ġorg . lan tern powered . server . data . type Ċ Ċ import Ġorg . lan tern powered . api . catalog . Catalog Key Ċ import Ġorg . lan tern powered . server . catalog . Default Catalog Type Ċ import Ġorg . lan tern powered . server . catalog . Internal Catalog Type Ċ import Ġorg . lan tern powered . server . item . Property Provider Collection Ċ import Ġorg . lan tern powered . server . text . translation . Translated Ċ import Ġorg . spongepowered . api . data . type . Cook ed Fish Ċ import Ġorg . spongepowered . api . data . type . Fish Ċ import Ġorg . spongepowered . api . text . translation . Trans latable Ċ import Ġjava . util . Optional Ċ import Ġjava . util . function . Consumer Ċ Ċ class ĠL an tern Fish ( ĊĠĠĠĠĠĠĠ Ġkey : ĠCatalog Key , Ġtranslation : ĠString , Ġoverride Ġval Ġinternal Id : ĠInt , ĊĠĠĠĠĠĠĠ Ġproperties Consumer : ĠConsumer < Property Provider Collection . Builder > Ċ ) Ġ: ĠDefault Catalog Type ( key ), ĠFish , ĠTrans latable Ġby ĠTrans lated ( translation ), ĠInternal Catalog Type Ġ{ ĊĊĠĠĠ Ġprivate Ġvar Ġcook ed Fish : ĠCook ed Fish ? Ġ= Ġnull ĊĠĠĠ Ġval Ġproperties : ĠProperty Provider Collection ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbuilder Ġ= ĠProperty Provider Collection . builder () ĊĠĠĠĠĠĠĠ Ġproperties Consumer . accept ( builder ) ĊĠĠĠĠĠĠĠ Ġthis . properties Ġ= Ġbuilder . build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠtoString Helper () Ġ= Ġsuper . toString Helper (). omit Null Values (). add (" cook ed Fish ", Ġcook ed Fish ?. key ) ĊĠĠĠ Ġoverride Ġfun ĠgetC ook ed Fish () Ġ= ĠOptional . of Nullable ( this . cook ed Fish ) ĊĊĠĠĠ Ġfun Ġset Cook ed Fish ( cook ed Fish : ĠCook ed Fish ) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . cook ed Fish Ġ= Ġcook ed Fish ĊĠĠĠ Ġ} Ċ } Ċ