How get the player of player's looking at?

i know in the old bukkit, we can, but how can i do it in sponge?
thx…

(i know i have to, do with yaw, and other…, and it’s long, and confused, but if you can help me)

There are some workarounds but they are quite ugly sollutions.

Wrong section…

It may be possible with ray tracing using BlockRay https://github.com/SpongePowered/SpongeAPI/blob/master/src/main/java/org/spongepowered/api/util/blockray/BlockRay.java

Moved topic from ‘Plugins/Plugin Releases’ to ‘Sponge/Sponge Support’

That blockray will do the job however it’s not very accurate

i have read, but i don’t know how can i do it…

i know it’s long, but if i can do it now, it’s will be a luck for me!!!