Is Block at specific location passsable

Dear all,

I tried to get the information from a location whether the block at this location (if present) is passble for a player or entity. I coudn’t find any suitable property or data key to get the information from the location neither from the block state. Maybe I missed something, but does anybody know how I can get this information?

Regards
Sascha

world.getBlock(x, y, z).getProperty(PassableProperty.class).map(PassableProperty::getValue).orElse(false)

1 Like