mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
fixed some names
This commit is contained in:
parent
63ef7c628c
commit
8248088c29
6 changed files with 74 additions and 66 deletions
|
|
@ -1,27 +1,26 @@
|
|||
<?php
|
||||
|
||||
class CarpetBlock extends FlowableBlock{
|
||||
|
||||
protected static $names = [0 => "White Carpet",
|
||||
1 => "Orange Carpet",
|
||||
2 => "Magenta Carpet",
|
||||
3 => "Light Blue Carpet",
|
||||
4 => "Yellow Carpet",
|
||||
5 => "Lime Carpet",
|
||||
6 => "Pink Carpet",
|
||||
7 => "Gray Carpet",
|
||||
8 => "Light Gray Carpet",
|
||||
9 => "Cyan Carpet",
|
||||
10 => "Purple Carpet",
|
||||
11 => "Blue Carpet",
|
||||
12 => "Brown Carpet",
|
||||
13 => "Green Carpet",
|
||||
14 => "Red Carpet",
|
||||
15 => "Black Carpet",];
|
||||
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(CARPET, $meta, "Carpet");
|
||||
$names = array(
|
||||
0 => "White Carpet",
|
||||
1 => "Orange Carpet",
|
||||
2 => "Magenta Carpet",
|
||||
3 => "Light Blue Carpet",
|
||||
4 => "Yellow Carpet",
|
||||
5 => "Lime Carpet",
|
||||
6 => "Pink Carpet",
|
||||
7 => "Gray Carpet",
|
||||
8 => "Light Gray Carpet",
|
||||
9 => "Cyan Carpet",
|
||||
10 => "Purple Carpet",
|
||||
11 => "Blue Carpet",
|
||||
12 => "Brown Carpet",
|
||||
13 => "Green Carpet",
|
||||
14 => "Red Carpet",
|
||||
15 => "Black Carpet",
|
||||
);
|
||||
$this->name = $names[$this->meta & 0x15];
|
||||
parent::__construct(CARPET, $meta, self::$names[$meta]);
|
||||
$this->hardness = 0;
|
||||
$this->isFullBlock = false;
|
||||
$this->isSolid = true;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ class CyanFlowerBlock extends FlowableBlock{
|
|||
8 => "Oxeye Daisy",
|
||||
];
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(CYAN_FLOWER, $meta, self::$names[$meta & 0x08]);
|
||||
parent::__construct(CYAN_FLOWER, $meta, nullsafe(self::$names[$meta], "Poppy"));
|
||||
$this->hardness = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,19 @@
|
|||
<?php
|
||||
|
||||
class StoneBlock extends SolidBlock{
|
||||
|
||||
protected static $names = [
|
||||
0 => "Stone",
|
||||
1 => "Granite",
|
||||
2 => "Polished Granite",
|
||||
3 => "Diorite",
|
||||
4 => "Polished Diorite",
|
||||
5 => "Andesite",
|
||||
6 => "Polished Andesite",
|
||||
];
|
||||
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(STONE, $meta, "Stone");
|
||||
$names = array(
|
||||
0 => "Stone",
|
||||
1 => "Granite",
|
||||
2 => "Polished Granite",
|
||||
3 => "Diorite",
|
||||
4 => "Polished Diorite",
|
||||
5 => "Andesite",
|
||||
6 => "Polished Andesite",
|
||||
);
|
||||
$this->name = $names[$this->meta & 0x06];
|
||||
parent::__construct(STONE, $meta, nullsafe(self::$names[$meta], "Stone"));
|
||||
$this->hardness = 30;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,27 +1,28 @@
|
|||
<?php
|
||||
|
||||
class WoolBlock extends SolidBlock{
|
||||
|
||||
protected static $names = array(
|
||||
0 => "White Wool",
|
||||
1 => "Orange Wool",
|
||||
2 => "Magenta Wool",
|
||||
3 => "Light Blue Wool",
|
||||
4 => "Yellow Wool",
|
||||
5 => "Lime Wool",
|
||||
6 => "Pink Wool",
|
||||
7 => "Gray Wool",
|
||||
8 => "Light Gray Wool",
|
||||
9 => "Cyan Wool",
|
||||
10 => "Purple Wool",
|
||||
11 => "Blue Wool",
|
||||
12 => "Brown Wool",
|
||||
13 => "Green Wool",
|
||||
14 => "Red Wool",
|
||||
15 => "Black Wool",
|
||||
);
|
||||
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(WOOL, $meta, "Wool");
|
||||
$names = array(
|
||||
0 => "White Wool",
|
||||
1 => "Orange Wool",
|
||||
2 => "Magenta Wool",
|
||||
3 => "Light Blue Wool",
|
||||
4 => "Yellow Wool",
|
||||
5 => "Lime Wool",
|
||||
6 => "Pink Wool",
|
||||
7 => "Gray Wool",
|
||||
8 => "Light Gray Wool",
|
||||
9 => "Cyan Wool",
|
||||
10 => "Purple Wool",
|
||||
11 => "Blue Wool",
|
||||
12 => "Brown Wool",
|
||||
13 => "Green Wool",
|
||||
14 => "Red Wool",
|
||||
15 => "Black Wool",
|
||||
);
|
||||
$this->name = $names[$this->meta & 0x15];
|
||||
parent::__construct(WOOL, $meta, nullsafe(self::$names[$meta], "Wool"));
|
||||
$this->hardness = 4;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue