entity = $entity; $this->rayTraceResult = $rayTraceResult; } /** * @return Projectile */ public function getEntity(){ return $this->entity; } /** * Returns a RayTraceResult object containing information such as the exact position struck, the AABB it hit, and * the face of the AABB that it hit. */ public function getRayTraceResult() : RayTraceResult{ return $this->rayTraceResult; } }