can Player Enter Block Pos
fun canPlayerEnterBlockPos(pos: BlockPos, blockState: BlockState, playerBox: AABB, tolerateLowBoundingBoxes: Boolean): Boolean
Used for blocks that are above the block we try to jump on. Checks if the player can enter the block pos or if he would collide with the block and fall down.
Parameters
player Box
the player box. it's minY should be the top of the block we want to jump on.
tolerate Low Bounding Boxes
if true, bounding boxes whose height is 0.2 or lower are ignored. This should be set if this block is directly above the block the player currently tries to jump on. Since in that case the player can also jump on that block (because of the jump height), regardless if there is a block two blocks above (because 1.8 (player height) + 0.2 = 2.0).