I was wondering if there was a way that I could ovvsride a server mod that I made with an optional client side mod that I made to interact with it.
In other words I made a serverside only version of my mod as well as a common (server and client) sidd version for my client. I want to make it so that any player can join despite not having the mod installed which I was able to do with @Mod but now my problem is I was people with the client and only with the client to be able to oveeride
RayTraceResult can hold entities, but I don't see any being assigned to it except in objectMouseOver(), which is client-only. Someone a little more familiar can probably point you to a method that ray traces entities on the server. However, if you look at the objectMouseOver() method, you can see that it uses the hitVector, which you get from yaw and pitch, the player position, which you have, and a world object, which you also have. So you could adapt the objectMouseOver() method's logic to use