package Ġcom . mine in aby ss . mob zy . api . helpers . entity Ċ Ċ import Ġorg . bukkit . Location Ċ import Ġorg . bukkit . entity . Entity Ċ Ċ fun ĠEntity . look At ( x : ĠDouble , Ġy : ĠDouble , Ġz : ĠDouble ) Ġ{ ĊĠĠĠ Ġval Ġdir Between Locations Ġ= Ġorg . bukkit . util . Vector ( x , Ġy , Ġz ). subtract ( location . to Vector ()) ĊĠĠĠ Ġval Ġlocation Ġ= Ġlocation ĊĠĠĠ Ġlocation . direction Ġ= Ġdir Between Locations ĊĠĠĠ Ġset Rotation ( location . yaw , Ġlocation . pitch ) Ċ } Ċ Ċ /** ĠLooks Ġat Ġ[ location ] Ġ*/ Ċ fun ĠEntity . look At ( location : ĠLocation ) Ġ= Ġlook At ( location . x , Ġlocation . y , Ġlocation . z ) Ċ Ċ /** ĠLooks Ġat Ġ[ entity ] Ġ*/ Ċ fun ĠEntity . look At ( entity : ĠEntity ) Ġ= Ġlook At ( entity . location ) Ċ Ċ fun ĠEntity . look At ( x : ĠDouble , Ġz : ĠDouble ) Ġ= Ġlook At ( x , Ġlocation . y , Ġz ) Ċ Ċ fun ĠEntity . look At Pitch Lock ( location : ĠLocation ) Ġ= Ġlook At ( location . x , Ġlocation . z ) Ċ Ċ fun ĠEntity . look At Pitch Lock ( entity : ĠEntity ) Ġ= Ġlook At Pitch Lock ( entity . location ) Ċ