Skip to content

MansionSimpleGrid 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\piece\mansion\MansionSimpleGrid · source

vanilla's WoodlandMansionPieces.SimpleGrid: a 2D grid of ints with a value for the cells outside it.

Properties ​

$height ​

php
public readonly int $height

$width ​

php
public readonly int $width

Methods ​

__construct() ​

php
public function __construct(int $width, int $height, int $valueIfOutside)

edgesTo() ​

php
public function edgesTo(int $x, int $y, int $ifValue) : bool

get() ​

php
public function get(int $x, int $y) : int

set() ​

php
public function set(int $x, int $y, int $value) : void

setArea() ​

php
public function setArea(int $x0, int $y0, int $x1, int $y1, int $value) : void

setIf() ​

php
public function setIf(int $x, int $y, int $ifValue, int $value) : void

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