mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
bounds for pmflevel methods, random block ticking ported from 0.1.3 core, player height was decreased a bit
This commit is contained in:
parent
84dd0b82b3
commit
3dd9e38a37
22 changed files with 326 additions and 216 deletions
|
|
@ -15,7 +15,12 @@ class Position extends Vector3{
|
|||
|
||||
$this->level = $level;
|
||||
}
|
||||
|
||||
public function setXYZLevel($x, $y, $z, Level $level){
|
||||
$this->x = $x;
|
||||
$this->y = $y;
|
||||
$this->z = $z;
|
||||
$this->level = $level;
|
||||
}
|
||||
public function getSide($side, $step = 1){
|
||||
return new Position(parent::getSide($side, $step), 0, 0, $this->level);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue