Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Make getUserLookingAt returns which entity the player is facing. Right now it only has 2 types: block and air, if there's entity it should be great
Describe alternatives you've considered
I don't know
Additional context
I'm going through the OpenGlasses' source, and saw the todo:
//todo: figure out entity raytracing on server side, probably did that already in OpenEntity
Is your feature request related to a problem? Please describe. No
Describe the solution you'd like Make
getUserLookingAt
returns which entity the player is facing. Right now it only has 2 types:block
andair
, if there'sentity
it should be greatDescribe alternatives you've considered I don't know
Additional context I'm going through the OpenGlasses' source, and saw the todo:
at Line 650,
OpenGlassesHostComponent.java
Bukkit seems to have a that does entity ray tracing, you can probably use that:
(Source: CraftWorld.java) Well, it's wrapped by custom classes, so you may have to remap it manually to MCP's mapping