22declare(strict_types=1);
26use pocketmine\block\utils\StaticSupportTrait;
33 use StaticSupportTrait;
53 private function canBeSupportedAt(
Block $block) : bool{
54 $supportBlock = $block->getSide(
Facing::DOWN);
56 $supportBlock->
hasTypeTag(BlockTypeTags::SAND) ||
57 $supportBlock->hasTypeTag(BlockTypeTags::MUD) ||
58 match($supportBlock->getTypeId()){
61 BlockTypeIds::MYCELIUM,
64 BlockTypeIds::HARDENED_CLAY,
65 BlockTypeIds::STAINED_CLAY =>
true,
getDropsForIncompatibleTool(Item $item)