LeviLamina
Loading...
Searching...
No Matches
DropItemForGoal.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/legacy/ActorUniqueID.h"
8#include "mc/util/FloatRange.h"
9#include "mc/world/actor/ActorDefinitionTrigger.h"
10#include "mc/world/actor/ai/goal/BaseMoveToBlockGoal.h"
11
12// auto generated forward declare list
13// clang-format off
14class BlockPos;
15class BlockSource;
16class Mob;
17struct MobDescriptor;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, bool> mHasDroppedItem;
25 ::ll::TypedStorage<4, 4, int> mCooldownRemaining;
26 ::ll::TypedStorage<4, 4, int> mTicksBeforePickup;
27 ::ll::TypedStorage<4, 4, int> mTotalCooldownTicks;
28 ::ll::TypedStorage<4, 4, float> mDropItemChance;
29 ::ll::TypedStorage<4, 4, float> mPreferredSquareDistance;
30 ::ll::TypedStorage<4, 4, float> mMinimumTeleportDistance;
31 ::ll::TypedStorage<4, 4, float> mLookAtTargetMaxHeadHeight;
32 ::ll::TypedStorage<8, 32, ::std::string> mLootTable;
33 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mDropForID;
34 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnDropAttempt;
35 ::ll::TypedStorage<4, 8, ::FloatRange> mTimeOfDayRange;
36 ::ll::TypedStorage<4, 12, ::Vec3> mTargetRange;
37 ::ll::TypedStorage<4, 12, ::Vec3> mTeleportDistanceFromTarget;
38 ::ll::TypedStorage<8, 24, ::std::vector<::MobDescriptor>> mTargetFilter;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 // vIndex: 1
49 virtual bool canUse() /*override*/;
50
51 // vIndex: 2
52 virtual bool canContinueToUse() /*override*/;
53
54 // vIndex: 4
55 virtual void start() /*override*/;
56
57 // vIndex: 5
58 virtual void stop() /*override*/;
59
60 // vIndex: 6
61 virtual void tick() /*override*/;
62
63 // vIndex: 17
64 virtual bool findTargetBlock() /*override*/;
65
66 // vIndex: 11
67 virtual bool isValidTarget(::BlockSource& region, ::BlockPos const& pos) /*override*/;
68
69 // vIndex: 7
70 virtual void appendDebugInfo(::std::string& str) const /*override*/;
71
72 // vIndex: 0
73 virtual ~DropItemForGoal() /*override*/ = default;
74 // NOLINTEND
75
76public:
77 // member functions
78 // NOLINTBEGIN
79 MCNAPI explicit DropItemForGoal(::Mob& mob);
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85 MCNAPI void* $ctor(::Mob& mob);
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCNAPI bool $canUse();
92
93 MCNAPI bool $canContinueToUse();
94
95 MCNAPI void $start();
96
97 MCNAPI void $stop();
98
99 MCNAPI void $tick();
100
101 MCNAPI bool $findTargetBlock();
102
103 MCNAPI bool $isValidTarget(::BlockSource& region, ::BlockPos const& pos);
104
105 MCNAPI void $appendDebugInfo(::std::string& str) const;
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
Definition BaseMoveToBlockGoal.h:13
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition DropItemForGoal.h:20
MCAPI bool $findTargetBlock()
MCAPI bool $isValidTarget(::BlockSource &region, ::BlockPos const &pos)
MCAPI void $stop()
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI bool $canContinueToUse()
MCAPI void * $ctor(::Mob &mob)
static MCAPI void ** $vftable()
MCAPI void $tick()
MCAPI DropItemForGoal(::Mob &mob)
MCAPI bool $canUse()
MCAPI void $start()
Definition Mob.h:47
Definition MobDescriptor.h:5