[1.16.5-1.18] RenderBoundingBox of BlockEntity is ignored for culling
TimeConqueror opened this issue ยท 2 comments
Right now EntityCulling considers the render bounding box of any BlockEntity as a single block with AABB(0;0;0->1;1;1). click
This breaks the compatibility with some mods with blockentities which are rendered as multiblocks (where the one renders others).
I have a mod called LootGames, which has the Minesweeper Minigame. The master block of this game which renders the whole game board is hidden in the corner under the walls. It has an infinite AABB for rendering purpose [click], so it needs to be rendered wherever the player is.
It's been a while since I worked on the mc side of the code, but I think I just either didn't know or overlooked that BlockEntities do have a render bounding box too. Will look into fixing this.
https://github.com/MinecraftForge/MinecraftForge/blob/75408c1a705dd51a5879b2612df310389bfe0143/src/main/java/net/minecraftforge/common/extensions/IForgeBlockEntity.java#L121
This method is native to Forge, not to Minecraft. I'll add it to the forge side of things.