mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
42 lines
No EOL
1,006 B
PHP
42 lines
No EOL
1,006 B
PHP
<?php
|
|
|
|
/*
|
|
|
|
-
|
|
/ \
|
|
/ \
|
|
/ PocketMine \
|
|
/ MP \
|
|
|\ @shoghicp /|
|
|
|. \ / .|
|
|
| .. \ / .. |
|
|
| .. | .. |
|
|
| .. | .. |
|
|
\ | /
|
|
\ | /
|
|
\ | /
|
|
\ | /
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
|
|
*/
|
|
|
|
class BrownMushroomBlock extends FlowableBlock{
|
|
public function __construct(){
|
|
parent::__construct(BROWN_MUSHROOM, 0, "Brown Mushroom");
|
|
$this->isFlowable = true;
|
|
}
|
|
|
|
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
|
$down = $this->getSide(0);
|
|
if($down->isTransparent === false){
|
|
$level->setBlock($block, $this->id, $this->getMetadata());
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
} |