In previous versions of forge, I used this method in World to check if the player was inside any block with a solid collision, such as a block or a fence. It worked pretty well.
world.collidesWithAnyBlock(pl.getEntityBoundingBox())
In 1.15.1, I'm using this method instead, but it works differently. It returns true even when I'm inside a block with no collision (like a flower), and it returns true even if I'm just standing inside the same block as the fence, rather than inside the fence itself.
world.checkBlockCollision(pl.getBoundingBox())
I'm wondering if there a method equivalent to world.collidesWithAnyBlock() in the newest build of forge? A way to check if a bounding box is collided with any solid objects?