Inheritance: extends Transparent
Exemple #1
0
 public function onActivate(Item $item, Player $player = null)
 {
     if ($player instanceof Player) {
         return true;
     } else {
         return parent::onActivate($item, $player);
     }
 }
Exemple #2
0
 public function __construct($meta = 0)
 {
     parent::__construct(self::WOOD_DOOR_BLOCK, $meta, "Wood Door Block");
     $this->isActivable = true;
     $this->hardness = 15;
 }
Exemple #3
0
 public function __construct($meta = 0)
 {
     parent::__construct(self::IRON_DOOR_BLOCK, $meta, "Iron Door Block");
     //$this->isActivable = true;
     $this->hardness = 25;
 }