mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Updating blocks and items
Added new blocks/items and added constants to existing blocks/items for clearer recipe making.
This commit is contained in:
@ -26,6 +26,10 @@ use pocketmine\item\Tool;
|
||||
|
||||
class Sandstone extends Solid{
|
||||
|
||||
const NORMAL = 0;
|
||||
const CHISELED = 1;
|
||||
const SMOOTH = 2;
|
||||
|
||||
protected $id = self::SANDSTONE;
|
||||
|
||||
public function __construct($meta = 0){
|
||||
@ -38,9 +42,9 @@ class Sandstone extends Solid{
|
||||
|
||||
public function getName(){
|
||||
static $names = [
|
||||
0 => "Sandstone",
|
||||
1 => "Chiseled Sandstone",
|
||||
2 => "Smooth Sandstone",
|
||||
self::NORMAL => "Sandstone",
|
||||
self::CHISELED => "Chiseled Sandstone",
|
||||
self::SMOOTH => "Smooth Sandstone",
|
||||
3 => "",
|
||||
];
|
||||
return $names[$this->meta & 0x03];
|
||||
|
Reference in New Issue
Block a user