/** * @param Block $block * * @param * @param $hash Hash */ public function doRedstoneBlockUpdate($block, $type, $power, $hash = NULL) { if ($hash == NULL) { $hash = Level::blockHash(0, 0, 0); } $block->onRedstoneUpdate($type, $power); for ($side = 0; $side <= 5; $side++) { $aroundBlock = $block->getSide($side); if ($aroundBlock->getId() == Block::OBSERVER) { #ToDo:AddAInterfaceForThis $aroundBlock->onRedstoneUpdate($type, $power, $hash); } } }