package Ġcp up . mc . workbench Upgrade s Ċ Ċ import Ġnet . minecraft . client . Minecraft Ċ import Ġnet . minecraft . client . renderer . block . model . Model Resource Location Ċ import Ġnet . minecraft . init . Blocks Ċ import Ġnet . minecraft . item . Item Ċ import Ġnet . minecraft . item . Item Block Ċ import Ġnet . minecraft . item . ItemStack Ċ import Ġnet . minecraftforge . client . model . Model Loader Ċ import Ġnet . minecraftforge . fml . common . F ML Common Handler Ċ import Ġnet . minecraftforge . fml . common . Mod Ċ import Ġnet . minecraftforge . fml . common . Side d Proxy Ċ import Ġnet . minecraftforge . fml . common . event . F ML Initialization Event Ċ import Ġnet . minecraftforge . fml . common . event . F ML Pre Initialization Event Ċ import Ġnet . minecraftforge . fml . common . network . Network Registry Ċ import Ġnet . minecraftforge . fml . common . registry . Game Registry Ċ import Ġnet . minecraftforge . ore dict . Shape less O re Recipe Ċ import Ġorg . apache . logging . log 4 j . Logger Ċ Ċ @ Mod ( mod id Ġ= Ġ" workbench - upgrade s ") Ċ class ĠWork bench Upgrade s Ġ{ Ċ ĉ @ Mod . EventHandler Ċ ĉ fun Ġpre Init Ev ( e : ĠF ML Pre Initialization Event ) Ġ{ Ċĉ ĉ Static ._ logger Ġ= Ġe . mod Log Ċĉ ĉ Static ._ block Ġ= ĠWork bench Block () Ċĉ ĉ Game Registry . register ( Static . block ) Ċĉ ĉ Game Registry . register ( Item Block ( Static . block ), ĠStatic . block . registry Name ) Ċĉ ĉ Static . proxy . pre Init Ev ( e ) Ċ ĉ } ĊĊ ĉ @ Mod . EventHandler Ċ ĉ fun Ġinit Ev ( e : ĠF ML Initialization Event ) Ġ{ Ċĉ ĉ Network Registry . INSTANCE . register Gui Handler ( this , ĠGUI Handler ) Ċĉ ĉ Game Registry . add Recipe ( Shape less O re Recipe ( Ċĉĉ ĉ ItemStack ( block ), Ċĉĉ ĉ " block I ron ", ĠBlocks . CR AFT ING _ TABLE Ċĉ ĉ )) Ċ ĉ } ĊĊ ĉ open Ġclass ĠCommon Proxy Ġ{ Ċĉ ĉ open Ġfun Ġpre Init Ev ( e : ĠF ML Pre Initialization Event ) Ġ{} Ċ ĉ } ĊĊ ĉ class ĠClient Proxy Ġ: ĠCommon Proxy () Ġ{ Ċĉ ĉ override Ġfun Ġpre Init Ev ( e : ĠF ML Pre Initialization Event ) Ġ{ Ċĉĉ ĉ super . pre Init Ev ( e ) Ċĉĉ ĉ Model Loader . set Custom Model Resource Location ( Item . getItem From Block ( Static . block ), Ġ 0 , ĠModel Resource Location ( Static . block . registry Name , Ġ" inventory ")) Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ class ĠServer Proxy Ġ: ĠCommon Proxy () Ġ{ ĊĊ ĉ } ĊĊ ĉ comp anion Ġobject ĠStatic Ġ{ Ċĉ ĉ private Ġvar Ġ_ logger : ĠLogger ? Ġ= Ġnull Ċĉ ĉ val Ġlogger : ĠLogger Ċĉĉ ĉ get () Ġ= Ġ_ logger !! ĊĊĉ ĉ private Ġvar Ġ_ block : ĠWork bench Block ? Ġ= Ġnull Ċĉ ĉ val Ġblock : ĠWork bench Block Ċĉĉ ĉ get () Ġ= Ġ_ block !! ĊĊĉ ĉ @ Mod . Instance (" workbench - upgrade s ") Ċĉ ĉ private Ġvar Ġ_ instance : ĠWork bench Upgrade s ? Ġ= Ġnull Ċĉ ĉ val Ġinstance : ĠWork bench Upgrade s Ċĉĉ ĉ get () Ġ= Ġ_ instance !! ĊĊĉ ĉ @ Side d Proxy Ċĉ ĉ private Ġvar Ġ_ proxy : ĠCommon Proxy ? Ġ= Ġnull Ċĉ ĉ val Ġproxy : ĠCommon Proxy Ċĉĉ ĉ get () Ġ= Ġ_ proxy !! Ċ ĉ } Ċ }