isReplaceable

abstract fun isReplaceable(): Boolean

If this block state can be replaced with another block state when attempting to place a block on this block.

For example, when a player places a block on grass, instead of the block being placed on the side in which the player clicked, the target grass will be replaced with the block the player was placing.

Return

true if this block state is replaceable