I want the bounding box to be visible to the entity the player is looking at. But the bounding box is displayed to me.
How do I display this to entity?
This is my code:
@SubscribeEvent
public void renderWorldLastEvent(RenderWorldLastEvent event) {
if (Minecraft.getMinecraft().objectMouseOver.entityHit != null) {
renderEntityBox(Minecraft.getMinecraft().objectMouseOver.entityHit, event.getPartialTicks());
}
}
void renderEntityB