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,11 @@ use pocketmine\item\Tool;
|
||||
|
||||
class Quartz extends Solid{
|
||||
|
||||
const QUARTZ_NORMAL = 0;
|
||||
const QUARTZ_CHISELED = 1;
|
||||
const QUARTZ_PILLAR = 2;
|
||||
const QUARTZ_PILLAR2 = 3;
|
||||
|
||||
protected $id = self::QUARTZ_BLOCK;
|
||||
|
||||
public function __construct($meta = 0){
|
||||
@ -38,10 +43,10 @@ class Quartz extends Solid{
|
||||
|
||||
public function getName(){
|
||||
static $names = [
|
||||
0 => "Quartz Block",
|
||||
1 => "Chiseled Quartz Block",
|
||||
2 => "Quartz Pillar",
|
||||
3 => "Quartz Pillar",
|
||||
self::QUARTZ_NORMAL => "Quartz Block",
|
||||
self::QUARTZ_CHISELED => "Chiseled Quartz Block",
|
||||
self::QUARTZ_PILLAR => "Quartz Pillar",
|
||||
self::QUARTZ_PILLAR2 => "Quartz Pillar",
|
||||
];
|
||||
return $names[$this->meta & 0x03];
|
||||
}
|
||||
|
Reference in New Issue
Block a user