Update EntityAPI.php

This commit is contained in:
ArkQuark 2022-10-20 23:35:02 +03:00
parent 7ea63bdceb
commit 83b7bc4b39
11 changed files with 380 additions and 57 deletions

View file

@ -32,7 +32,10 @@ class Level{
public function close(){
$this->__destruct();
}
/**
* @param AxisAlignedBB $aABB
* @return AxisAlignedBB[]
*/
public function getCubes(AxisAlignedBB $aABB) {
$aABBs = [];
$x0 = floor($aABB->minX);
@ -61,6 +64,7 @@ class Level{
return $aABBs;
}
public function __destruct(){
if(isset($this->level)){
$this->save(false, false);