package Ġthere alf ar fetch d . power line . common . api . block . capability Ċ Ċ import Ġnet . minecraft . util . Enum Facing Ċ import Ġnet . minecraft . util . Resource Location Ċ import Ġthere alf ar fetch d . power line . Mod ID Ċ import Ġthere alf ar fetch d . power line . common . api . Power Type Ċ import Ġthere alf ar fetch d . qu ack lib . common . api . block . capability . I Connect able Ċ Ċ interface ĠIP ower Connect able Ġ: ĠI Connect able Ġ{ ĊĊĠ Ġoverride Ġfun ĠgetType ( facing : ĠEnum Facing ?): ĠResource Location ? Ġ= Ġget Connection Type ( get Power Type ( facing )) ĊĊĠ Ġfun Ġget Power Type ( facing : ĠEnum Facing ?): ĠPower Type ? ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġval ĠType LV Ġ= ĠResource Location ( Mod ID , Ġ" low _ voltage ") ĊĠĠĠ Ġval ĠType HV Ġ= ĠResource Location ( Mod ID , Ġ" high _ voltage ") ĊĊĠĠĠ Ġfun Ġget Connection Type ( pt : ĠPower Type ?): ĠResource Location ? Ġ= ĊĠĠĠĠĠ Ġwhen Ġ( pt ) Ġ{ ĊĠĠĠĠĠĠĠ ĠPower Type . Low Voltage Ġ-> ĠType LV ĊĠĠĠĠĠĠĠ ĠPower Type . High Voltage Ġ-> ĠType HV ĊĠĠĠĠĠĠĠ Ġelse Ġ-> Ġnull ĊĠĠĠĠĠ Ġ} ĊĠ Ġ} Ċ }