mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fence
This commit is contained in:
parent
e3ecebb17b
commit
edcf1d0556
11 changed files with 273 additions and 4 deletions
|
|
@ -1,8 +1,17 @@
|
|||
<?php
|
||||
|
||||
class FenceBlock extends TransparentBlock{
|
||||
public function __construct(){
|
||||
parent::__construct(FENCE, 0, "Fence");
|
||||
public function __construct($meta){
|
||||
parent::__construct(FENCE, $meta, "Fence");
|
||||
$names = [
|
||||
0 => "Oak Fence",
|
||||
1 => "Spruce Fence",
|
||||
2 => "Birch Fence",
|
||||
3 => "Jungle Fence",
|
||||
4 => "Acacia Fence",
|
||||
5 => "Dark Oak Fence"
|
||||
];
|
||||
$this->name = $names[$this->meta & 0x07];
|
||||
$this->isFullBlock = false;
|
||||
$this->hardness = 15;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue