BoundingBox 5.46.0
Vanilla's BoundingBox: an integer box with inclusive bounds. Mutable like vanilla's (move() and encapsulate() change the box); use copy() where vanilla creates a new box.
Properties
$maxX
php
public int $maxX$maxY
php
public int $maxY$maxZ
php
public int $maxZ$minX
php
public int $minX$minY
php
public int $minY$minZ
php
public int $minZMethods
__construct()
php
public function __construct(int $minX, int $minY, int $minZ, int $maxX, int $maxY, int $maxZ)__toString()
php
public function __toString() : stringchunk()
php
public static function chunk(int $chunkX, int $chunkZ, int $minY, int $maxY) : selfThe box of one chunk, between the given heights.
contains()
php
public function contains(\pocketmine\world\generator\vanilla\structure\BoundingBox $other) : boolWhether the other box is entirely inside this one.
copy()
php
public function copy() : selfencapsulate()
php
public function encapsulate(\pocketmine\world\generator\vanilla\structure\BoundingBox $other) : selfencapsulatePoint()
php
public function encapsulatePoint(int $x, int $y, int $z) : selfequals()
php
public function equals(\pocketmine\world\generator\vanilla\structure\BoundingBox $other) : boolfromCorners()
php
public static function fromCorners(int $x1, int $y1, int $z1, int $x2, int $y2, int $z2) : selfgetCenter()
php
public function getCenter() : arrayBoundingBox.getCenter()
getXSpan()
php
public function getXSpan() : intgetYSpan()
php
public function getYSpan() : intgetZSpan()
php
public function getZSpan() : intinflatedBy()
php
public function inflatedBy(int $amount) : selfintersects()
php
public function intersects(\pocketmine\world\generator\vanilla\structure\BoundingBox $other) : boolintersectsXZ()
php
public function intersectsXZ(int $minX, int $minZ, int $maxX, int $maxZ) : boolisInside()
php
public function isInside(int $x, int $y, int $z) : boolmove()
php
public function move(int $dx, int $dy, int $dz) : selfmoved()
php
public function moved(int $dx, int $dy, int $dz) : selforientBox()
php
public static function orientBox(int $footX, int $footY, int $footZ, int $offX, int $offY, int $offZ, int $width, int $height, int $depth, int $direction) : selfBoundingBox.orientBox(): a box of the given size whose foot is at (footX, footY, footZ), offset in the local frame of a piece facing the given direction.
toArray()
php
public function toArray() : array