RoomDefinition 5.46.0
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 $scanIndexMethods
__construct()
php
public function __construct(int $index)countOpenings()
php
public function countOpenings() : intfindSource()
php
public function findSource(int $scanIndex) : boolget()
php
public function get(int $direction) : \pocketmine\world\generator\vanilla\structure\piece\monument\RoomDefinitionThe connection in a direction, which the caller knows exists.
isSpecial()
php
public function isSpecial() : boolsetConnection()
php
public function setConnection(int $direction, \pocketmine\world\generator\vanilla\structure\piece\monument\RoomDefinition $definition) : voidupdateOpenings()
php
public function updateOpenings() : void