pocketmine\block\GlowingRedstoneOre::onUpdate PHP Метод

onUpdate() публичный Метод

public onUpdate ( $type )
    public function onUpdate($type)
    {
        if ($type === Level::BLOCK_UPDATE_SCHEDULED or $type === Level::BLOCK_UPDATE_RANDOM) {
            $this->getLevel()->setBlock($this, Block::get(Item::REDSTONE_ORE, $this->meta), false, false);
            return Level::BLOCK_UPDATE_WEAK;
        }
        return false;
    }