If I have a BlockPos, how can I tell if it's a full-height block (ie, not farmland, not bottom slab, but top slab would return true)? Essentially if the block at that location could support spawning (ignoring transparency and air above it, I've tested for those - I just need to verify the shape height).
I know use a selector to get entities like
@e[type=sheep, distance=8]
Is there a way in the code to do the equivalent? I made an EntityPredicate, but I'm not sure how to use it. I'm essentially trying to get all the entities around the player that match a criteria.