package Ġnet . cy dh ra . tech n ocracy . foundation . util Ċ Ċ import Ġnet . minecraft . block . state . I BlockState Ċ import Ġnet . minecraft . client . renderer . Item Mesh Definition Ċ import Ġnet . minecraft . client . renderer . block . model . Model Resource Location Ċ import Ġnet . minecraft . client . renderer . block . state map . State Mapper Base Ċ import Ġnet . minecraft . item . ItemStack Ċ import Ġnet . minecraft . util . Resource Location Ċ Ċ /** Ċ Ġ* ĠCustom Ġstate Ġmapper Ġthat Ġassign es Ġan Ġalternative Ġmodel Ġresource Ġlocation Ġto Ġblock Ġmodels Ċ Ġ*/ Ċ class ĠState Mapper ( fileName : ĠString , Ġmodel Name : ĠString ) Ġ: ĠState Mapper Base (), ĠItem Mesh Definition Ġ{ ĊĊĠĠĠ Ġval Ġmodel Location Ġ= ĠModel Resource Location ( Resource Location (" tech n ocracy . foundation ", ĊĠĠĠĠĠĠĠĠĠĠĠ ĠfileName ), Ġmodel Name ) ĊĊĠĠĠ Ġoverride Ġfun ĠgetModel Resource Location ( state : ĠI BlockState ): ĠModel Resource Location Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġmodel Location ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetModel Location ( stack : ĠItemStack ): ĠModel Resource Location Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġmodel Location ĊĠĠĠ Ġ} Ċ }