Check if a block is a stair

Hi, for some reason, I want to check if a block is a stair and get his direction.
How I can do that ^^ ?

Hi,

I believe you can use DirectionalData to get the facing direction of blocks, including Stairs.

Note that this isn’t implemented, so you won’t yet be able to test it in game.

Just look at it.
No, kidding :smiley:

I’d try something with:

if (location.getBlock().getType() == BlockTypes.JUNGLE_STAIRS)
    location.getBlock().getTraitValue(EnumTraits.JUNGLE_STAIRS_FACING);

But that’s not really optimal because you have to check every type of stairs … hmm.