20 [[nodiscard]]
constexpr explicit operator bool()
const {
21 return mType == HitResultType::Tile || mType == HitResultType::Entity;
24 HitResult& operator=(HitResult
const&) =
default;
25 HitResult(HitResult
const&) =
default;
26 HitResult(::HitResult&&) =
default;
35 : mStartPos(startPos),
37 mType(HitResultType::Entity),
40 mEntity(entity.getEntityContext().getWeakRef()),
41 mEntityAABB(entityAABB),
44 mIndirectHit(
false) {}
51 ::HitResultType mType;
66 HitResult() =
default;
70 HitResult() =
default;
80 MCAPI ::Actor* getEntity()
const;
83 MCAPI ::HitResult& operator=(::HitResult&&);