mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
20 lines
No EOL
547 B
PHP
20 lines
No EOL
547 B
PHP
<?php
|
|
|
|
class TransparentBlock extends GenericBlock{
|
|
/**
|
|
* @param int $id
|
|
* @param int $meta
|
|
* @param string $name
|
|
*/
|
|
public function __construct($id, $meta = 0, $name = "Unknown"){
|
|
parent::__construct($id, $meta, $name);
|
|
$this->isActivable = false;
|
|
$this->breakable = true;
|
|
$this->isFlowable = false;
|
|
$this->isTransparent = true;
|
|
$this->isReplaceable = false;
|
|
$this->isPlaceable = true;
|
|
$this->isSolid = true;
|
|
$this->boundingBox->setBounds($this->x, $this->y, $this->z, $this->x + 1, $this->y + 1, $this->z + 1);
|
|
}
|
|
} |