LeviLamina
Loading...
Searching...
No Matches
HitResult.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/ecs/WeakEntityRef.h"
8#include "mc/world/level/BlockPos.h"
9#include "mc/world/phys/AABB.h"
10#include "mc/world/phys/HitResultType.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15// clang-format on
16
17class HitResult {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 12, ::Vec3> mStartPos;
22 ::ll::TypedStorage<4, 12, ::Vec3> mRayDir;
23 ::ll::TypedStorage<4, 4, ::HitResultType> mType;
24 ::ll::TypedStorage<1, 1, uchar> mFacing;
25 ::ll::TypedStorage<4, 12, ::BlockPos> mBlock;
26 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
27 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mEntity;
28 ::ll::TypedStorage<4, 24, ::AABB> mEntityAABB;
29 ::ll::TypedStorage<1, 1, bool> mIsHitLiquid;
30 ::ll::TypedStorage<1, 1, uchar> mLiquidFacing;
31 ::ll::TypedStorage<4, 12, ::BlockPos> mLiquid;
32 ::ll::TypedStorage<4, 12, ::Vec3> mLiquidPos;
33 ::ll::TypedStorage<1, 1, bool> mIndirectHit;
34 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI HitResult();
40
41 MCAPI HitResult(::HitResult&&);
42
43 MCAPI HitResult(::HitResult const&);
44
45 MCAPI HitResult(::Vec3 const& startPos, ::Vec3 const& rayDir, ::Actor& entity, ::Vec3 const& pos);
46
47 MCAPI HitResult(
48 ::Vec3 const& startPos,
49 ::Vec3 const& rayDir,
50 ::Actor& entity,
51 ::Vec3 const& pos,
52 ::AABB const& entityAABB
53 );
54
55 MCAPI ::Actor* getEntity() const;
56
57 MCAPI ::HitResult& operator=(::HitResult&&);
58
59 MCAPI ::HitResult& operator=(::HitResult const&);
60
61 MCAPI void resetHitEntity();
62
63 MCAPI ~HitResult();
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor();
70
71 MCAPI void* $ctor(::HitResult&&);
72
73 MCAPI void* $ctor(::HitResult const&);
74
75 MCAPI void* $ctor(::Vec3 const& startPos, ::Vec3 const& rayDir, ::Actor& entity, ::Vec3 const& pos);
76
77 MCAPI void*
78 $ctor(::Vec3 const& startPos, ::Vec3 const& rayDir, ::Actor& entity, ::Vec3 const& pos, ::AABB const& entityAABB);
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCFOLD void $dtor();
85 // NOLINTEND
86};
Definition AABB.h:15
Definition Actor.h:102
Definition HitResult.h:17
Definition Vec3.h:10