LeviLamina
Loading...
Searching...
No Matches
AdmireItemGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/WeakEntityRef.h"
7#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
8#include "mc/util/FloatRange.h"
9#include "mc/world/actor/ActorDefinitionTrigger.h"
10#include "mc/world/actor/ai/goal/BaseGoal.h"
11#include "mc/world/item/ItemStack.h"
12#include "mc/world/level/Tick.h"
13
14// auto generated forward declare list
15// clang-format off
17class Mob;
19// clang-format on
20
21class AdmireItemGoal : public ::BaseGoal {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
26 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEvent;
27 ::ll::TypedStorage<4, 8, ::FloatRange> mSoundIntervalRange;
28 ::ll::TypedStorage<8, 8, ::Tick> mNextSoundEventTick;
29 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnStartEvent;
30 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnStopEvent;
31 ::ll::TypedStorage<8, 152, ::ItemStack> mItemStackPicked;
32 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mItemOwner;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 AdmireItemGoal& operator=(AdmireItemGoal const&);
38 AdmireItemGoal(AdmireItemGoal const&);
39 AdmireItemGoal();
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual bool canUse() /*override*/;
45
46 virtual bool canContinueToUse() /*override*/;
47
48 virtual void start() /*override*/;
49
50 virtual void stop() /*override*/;
51
52 virtual void tick() /*override*/;
53
54 virtual void appendDebugInfo(::std::string& str) const /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI explicit AdmireItemGoal(::Mob& mob);
61
62 MCAPI void _removeItemFromOffhandSlot() const;
63
64 MCAPI void
65 _tryPlaceItemInInventory(::ContainerComponent& containerComponent, ::ShareableComponent const& shareableComponent);
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(::Mob& mob);
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI bool $canUse();
78
79 MCFOLD bool $canContinueToUse();
80
81 MCAPI void $start();
82
83 MCAPI void $stop();
84
85 MCAPI void $tick();
86
87 MCAPI void $appendDebugInfo(::std::string& str) const;
88
89
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCNAPI static void** $vftable();
96 // NOLINTEND
97};
static MCAPI void ** $vftable()
Definition ContainerComponent.h:26
Definition Mob.h:57
Definition ShareableComponent.h:14