LeviLamina
Loading...
Searching...
No Matches
LayEggGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/world/actor/ai/goal/BaseMoveToBlockGoal.h"
8#include "mc/world/level/material/MaterialType.h"
9
10// auto generated forward declare list
11// clang-format off
13class BlockLegacy;
14class BlockPos;
15class BlockSource;
16class ItemDescriptor;
17class Mob;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor> const> mTargetBlocks;
25 ::ll::TypedStorage<8, 24, ::std::vector<::MaterialType> const> mTargetMaterialsAboveBlock;
26 ::ll::TypedStorage<1, 1, bool const> mAllowLayingFromBelow;
27 ::ll::TypedStorage<1, 1, bool const> mUseDefaultAnimation;
28 ::ll::TypedStorage<4, 4, float const> mLaySeconds;
29 ::ll::TypedStorage<8, 16, ::ItemDescriptor const> mEggType;
30 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger const> mOnLay;
31 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent const> mLayEggSound;
32 ::ll::TypedStorage<4, 4, int> mLayEggCounter;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 17
39 virtual bool findTargetBlock() /*override*/;
40
41 // vIndex: 1
42 virtual bool canUse() /*override*/;
43
44 // vIndex: 2
45 virtual bool canContinueToUse() /*override*/;
46
47 // vIndex: 4
48 virtual void start() /*override*/;
49
50 // vIndex: 6
51 virtual void tick() /*override*/;
52
53 // vIndex: 7
54 virtual void appendDebugInfo(::std::string& str) const /*override*/;
55
56 // vIndex: 11
57 virtual bool isValidTarget(::BlockSource& region, ::BlockPos const& pos) /*override*/;
58
59 // vIndex: 14
60 virtual void _moveToBlock() /*override*/;
61
62 // vIndex: 0
63 virtual ~LayEggGoal() /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCAPI LayEggGoal(
70 ::Mob& mob,
71 float speedModifier,
72 int searchRange,
73 int searchHeight,
74 float goalRadius,
75 ::std::vector<::ItemDescriptor> const& targetBlocks,
76 ::std::vector<::MaterialType> const& targetMaterialsAboveBlock,
77 bool allowLayingFromBelow,
78 bool useDefaultAnimation,
79 float laySeconds,
80 ::ItemDescriptor const& eggType,
81 ::ActorDefinitionTrigger const& onLay,
82 ::std::string const& layEggSound
83 );
84
85 MCAPI bool _isTargetBlock(::BlockLegacy const& block) const;
86 // NOLINTEND
87
88public:
89 // constructor thunks
90 // NOLINTBEGIN
91 MCAPI void* $ctor(
92 ::Mob& mob,
93 float speedModifier,
94 int searchRange,
95 int searchHeight,
96 float goalRadius,
97 ::std::vector<::ItemDescriptor> const& targetBlocks,
98 ::std::vector<::MaterialType> const& targetMaterialsAboveBlock,
99 bool allowLayingFromBelow,
100 bool useDefaultAnimation,
101 float laySeconds,
102 ::ItemDescriptor const& eggType,
103 ::ActorDefinitionTrigger const& onLay,
104 ::std::string const& layEggSound
105 );
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111 MCAPI void $dtor();
112 // NOLINTEND
113
114public:
115 // virtual function thunks
116 // NOLINTBEGIN
117 MCAPI bool $findTargetBlock();
118
119 MCAPI bool $canUse();
120
121 MCAPI bool $canContinueToUse();
122
123 MCAPI void $start();
124
125 MCAPI void $tick();
126
127 MCAPI void $appendDebugInfo(::std::string& str) const;
128
129 MCAPI bool $isValidTarget(::BlockSource& region, ::BlockPos const& pos);
130
131 MCAPI void $_moveToBlock();
132 // NOLINTEND
133
134public:
135 // vftables
136 // NOLINTBEGIN
137 MCAPI static void** $vftable();
138 // NOLINTEND
139};
Definition ActorDefinitionTrigger.h:5
Definition BaseMoveToBlockGoal.h:13
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition ItemDescriptor.h:22
Definition LayEggGoal.h:20
Definition Mob.h:47