This actually concerns a pretty old change in PM that was made over a year ago, but I was looking through some of my old plugins and found out that Block::canBeActivated method was removed. And now I have a question: does PM no longer provide a way to distinguish such "activable" block from any other block? Say, I'm cancelling a PlayerInteractEvent and I want to send a message to players when they click on a block, but not just any block, an "activable" block. If there's no interface in PM for this, then I would like to hear for any other ways to check for this which don't involve making a list of such blocks.
What do you mean by "activable"? You can easy do PlayerInteractEvent and check the block's id to what ever you want.
PHP: /** * AKA: Block->isActivable * * @return bool */ public function canBeActivated(){ return false; } Spoiler: P.S.
no, there isn't any way to identify these blocks. That method should be moved to an interface. That's an enhancement I intend to do in the future.
"Activatable" is a vanilla-only concept. It doesn't apply when there come other plugins. For instance, would you consider a warp sign to be activatable?