mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
entities will collide with blocks like door, glass pane, iron bars
This commit is contained in:
parent
df54826e4c
commit
f3d726cddf
10 changed files with 107 additions and 8 deletions
|
|
@ -28,6 +28,10 @@ class AxisAlignedBB{
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function addMinMax($minX, $minY, $minZ, $maxX, $maxY, $maxZ){
|
||||
return new AxisAlignedBB($this->minX + $minX, $this->minY + $minY, $this->minZ + $minZ, $this->maxX + $maxX, $this->maxY + $maxY, $this->maxZ + $maxZ);
|
||||
}
|
||||
|
||||
public function addCoord($x, $y, $z){
|
||||
$minX = $this->minX;
|
||||
$minY = $this->minY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue