onVisible

abstract fun onVisible(player: Player)(source)

What to do when the block is considered visible to the player. This method will be called regardless of if the block was already considered visible So you should still run checks in this method to prevent doing unnecessary work.