But, it's more complicated than that, in LWJGL(I'm not making my own 3D engine ever!) I don't think it tells where the block is placed on the screen...
But I have two variables, Yaw and Pitch, maybe it works?
I could do it this way(lua style!
for range = 0.2,1.6 do
if (tile ~= nil and tile.getX() ~= math.floor(player.getX()) and tile.getY() ~= math.floor(player.getY()) and tile.getSolid()) then
It's a little different in java, almost left some pieces of java code there. I'm too used to it
X = player pos X(float)
Y = player pos Y(float)
Yaw = yaw rotation
Tile = a block