Posted May 11, 20205 yr In 1.8 I'm sure you were able to do private void getMouseOver(float partialTicks) { Vec3d vec = Minecraft.getMinecraft().getRenderViewEntity().getLook(partialTicks); } AxisAlignedBB axisalignedbb = entity.getEntityBoundingBox(); if (axisalignedbb.isVecInside(vec)) { //etc.. } This would allow you to get whether the mouse was over an entity. Any way to do this in 1.14, 1.15 or 1.12.2? Because I get the error: The method isVecInside(Vec3i) is undefined for the type AxisAlignedBB
May 11, 20205 yr The method is called contains now. I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.