The method battlegear2$getOffHandItemToRender() on IOffhandRender is not a standard Java method — it is dynamically injected at runtime by GTNH's Backhand mod using the Mixin system.