Skip to content

RoomDefinition 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\piece\monument\RoomDefinition · source

OceanMonumentPieces.RoomDefinition: a cell of the monument's 5x3x5 room grid (or one of the special rooms: wings and penthouse), with its connections to the neighbouring cells (indexed by Java 3D data value).

Properties ​

$claimed ​

php
public bool $claimed

$connections ​

php
public array $connections

$hasOpening ​

php
public array $hasOpening

$index ​

php
public readonly int $index

$isSource ​

php
public bool $isSource

$scanIndex ​

php
public int $scanIndex

Methods ​

__construct() ​

php
public function __construct(int $index)

countOpenings() ​

php
public function countOpenings() : int

findSource() ​

php
public function findSource(int $scanIndex) : bool

get() ​

php
public function get(int $direction) : \pocketmine\world\generator\vanilla\structure\piece\monument\RoomDefinition

The connection in a direction, which the caller knows exists.

isSpecial() ​

php
public function isSpecial() : bool

setConnection() ​

php
public function setConnection(int $direction, \pocketmine\world\generator\vanilla\structure\piece\monument\RoomDefinition $definition) : void

updateOpenings() ​

php
public function updateOpenings() : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.