LeviLamina
Loading...
Searching...
No Matches
DoorInteractGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Direction.h"
7#include "mc/world/actor/ai/goal/Goal.h"
8#include "mc/world/level/BlockPos.h"
9
10// auto generated forward declare list
11// clang-format off
12class DoorBlock;
13class Mob;
14class Path;
15// clang-format on
16
17class DoorInteractGoal : public ::Goal {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 12, ::BlockPos> mDoorPos;
22 ::ll::TypedStorage<8, 8, ::DoorBlock const*> mDoorBlock;
23 ::ll::TypedStorage<1, 1, bool> mInitialToggledState;
24 ::ll::TypedStorage<1, 1, bool> mMobOversized;
25 ::ll::TypedStorage<1, 1, bool> mExited;
26 ::ll::TypedStorage<4, 4, float> mDoorOpenDirX;
27 ::ll::TypedStorage<4, 4, float> mDoorOpenDirZ;
28 ::ll::TypedStorage<1, 1, ::Direction::Type> mEnterDirection;
29 ::ll::TypedStorage<1, 1, ::Direction::Type> mExitDirection;
30 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 DoorInteractGoal& operator=(DoorInteractGoal const&);
36 DoorInteractGoal(DoorInteractGoal const&);
37 DoorInteractGoal();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~DoorInteractGoal() /*override*/ = default;
43
44 virtual bool canUse() /*override*/;
45
46 virtual bool canContinueToUse() /*override*/;
47
48 virtual void start() /*override*/;
49
50 virtual void tick() /*override*/;
51
52 virtual void appendDebugInfo(::std::string& str) const /*override*/;
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static ::DoorBlock const* _findBlockingDoorAtPos(
59 ::BlockPos const& bpos,
60 ::Mob const& mob,
61 ::Path* path,
62 ::Direction::Type& dirIn,
63 ::Direction::Type& dirOut
64 );
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCAPI bool $canUse();
71
72 MCAPI bool $canContinueToUse();
73
74 MCAPI void $start();
75
76 MCAPI void $tick();
77
78 MCAPI void $appendDebugInfo(::std::string& str) const;
79
80
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftable();
87 // NOLINTEND
88};
Definition BlockPos.h:19
Definition DoorBlock.h:29
static MCAPI void ** $vftable()
Definition Goal.h:14
Definition Mob.h:50
Definition Path.h:16