mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
arrows test
This commit is contained in:
parent
968f3b9dd2
commit
60be9fb2da
7 changed files with 259 additions and 106 deletions
|
|
@ -23,7 +23,11 @@ class MovingObjectPosition{
|
|||
protected function __construct(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function __toString(){
|
||||
return "MovingObjectPosition: {blockXYZ: {$this->blockX} {$this->blockY} {$this->blockZ}, side: {$this->sideHit} hitVec: {$this->hitVector} entityHit: {$this->entityHit}}";
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $x
|
||||
* @param int $y
|
||||
|
|
@ -39,6 +43,7 @@ class MovingObjectPosition{
|
|||
$ob->blockX = $x;
|
||||
$ob->blockY = $y;
|
||||
$ob->blockZ = $z;
|
||||
$ob->sideHit = $side;
|
||||
$ob->hitVector = new Vector3($hitVector->x, $hitVector->y, $hitVector->z);
|
||||
return $ob;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue