interact Entity
fun interactEntity(entity: Entity, hitResult: EntityHitResult = EntityHitResult(entity), hand: InteractionHand = InteractionHand.MAIN_HAND, swingMode: SwingMode = SwingMode.DO_NOT_HIDE): InteractionResult?
Simulated net.minecraft.world.phys.HitResult.Type.ENTITY branch in vanilla No fallback MultiPlayerGameMode.useItem call
Return
Cannot interact -> null; else ->MultiPlayerGameMode.interact result
See also
Minecraft. start Use Item