Inheritance: extends Solid
コード例 #1
0
ファイル: Gravel.php プロジェクト: boybook/PocketMine-MP
 public function __construct()
 {
     parent::__construct(self::GRAVEL, 0, "Gravel");
     $this->hardness = 3;
 }
コード例 #2
0
 public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null)
 {
     parent::place($item, $block, $target, $face, $fx, $fy, $fz, $player);
     $this->getLevel()->addSound(new AnvilFallSound($this));
 }