mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
18 lines
No EOL
449 B
PHP
18 lines
No EOL
449 B
PHP
<?php
|
|
|
|
class SolidBlock 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->isSolid = true;
|
|
$this->isFullBlock = true;
|
|
}
|
|
|
|
public static function getCollisionBoundingBoxes(Level $level, $x, $y, $z, Entity $entity){
|
|
return [new AxisAlignedBB($x, $y, $z, $x + 1, $y + 1, $z + 1)];
|
|
}
|
|
} |