NostalgiaCore/src/material/block/nonfull/FenceBlock.php
2023-12-10 00:27:27 +03:00

18 lines
No EOL
398 B
PHP

<?php
class FenceBlock extends TransparentBlock{
public function __construct($meta = 0){
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;
}
}