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/ActorDefinitionTrigger.h"
8#include "mc/world/actor/ai/goal/BaseMoveToBlockGoal.h"
9#include "mc/world/item/ItemDescriptor.h"
10#include "mc/world/level/material/MaterialType.h"
11
12// auto generated forward declare list
13// clang-format off
14class BlockLegacy;
15class BlockPos;
16class BlockSource;
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 // prevent constructor by default
37 LayEggGoal();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 17
43 virtual bool findTargetBlock() /*override*/;
44
45 // vIndex: 1
46 virtual bool canUse() /*override*/;
47
48 // vIndex: 2
49 virtual bool canContinueToUse() /*override*/;
50
51 // vIndex: 4
52 virtual void start() /*override*/;
53
54 // vIndex: 6
55 virtual void tick() /*override*/;
56
57 // vIndex: 7
58 virtual void appendDebugInfo(::std::string& str) const /*override*/;
59
60 // vIndex: 11
61 virtual bool isValidTarget(::BlockSource& region, ::BlockPos const& pos) /*override*/;
62
63 // vIndex: 14
64 virtual void _moveToBlock() /*override*/;
65
66 // vIndex: 0
67 virtual ~LayEggGoal() /*override*/;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCNAPI LayEggGoal(
74 ::Mob& mob,
75 float speedModifier,
76 int searchRange,
77 int searchHeight,
78 float goalRadius,
79 ::std::vector<::ItemDescriptor> const& targetBlocks,
80 ::std::vector<::MaterialType> const& targetMaterialsAboveBlock,
81 bool allowLayingFromBelow,
82 bool useDefaultAnimation,
83 float laySeconds,
84 ::ItemDescriptor const& eggType,
85 ::ActorDefinitionTrigger const& onLay,
86 ::std::string const& layEggSound
87 );
88
89 MCNAPI bool _isTargetBlock(::BlockLegacy const& block) const;
90 // NOLINTEND
91
92public:
93 // constructor thunks
94 // NOLINTBEGIN
95 MCNAPI void* $ctor(
96 ::Mob& mob,
97 float speedModifier,
98 int searchRange,
99 int searchHeight,
100 float goalRadius,
101 ::std::vector<::ItemDescriptor> const& targetBlocks,
102 ::std::vector<::MaterialType> const& targetMaterialsAboveBlock,
103 bool allowLayingFromBelow,
104 bool useDefaultAnimation,
105 float laySeconds,
106 ::ItemDescriptor const& eggType,
107 ::ActorDefinitionTrigger const& onLay,
108 ::std::string const& layEggSound
109 );
110 // NOLINTEND
111
112public:
113 // destructor thunk
114 // NOLINTBEGIN
115 MCNAPI void $dtor();
116 // NOLINTEND
117
118public:
119 // virtual function thunks
120 // NOLINTBEGIN
121 MCNAPI bool $findTargetBlock();
122
123 MCNAPI bool $canUse();
124
125 MCNAPI bool $canContinueToUse();
126
127 MCNAPI void $start();
128
129 MCNAPI void $tick();
130
131 MCNAPI void $appendDebugInfo(::std::string& str) const;
132
133 MCNAPI bool $isValidTarget(::BlockSource& region, ::BlockPos const& pos);
134
135 MCNAPI void $_moveToBlock();
136 // NOLINTEND
137
138public:
139 // vftables
140 // NOLINTBEGIN
141 MCNAPI static void** $vftable();
142 // NOLINTEND
143};
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
static MCAPI void ** $vftable()
MCAPI void $dtor()
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI bool $findTargetBlock()
MCAPI LayEggGoal(::Mob &mob, float speedModifier, int searchRange, int searchHeight, float goalRadius, ::std::vector<::ItemDescriptor > const &targetBlocks, ::std::vector<::MaterialType > const &targetMaterialsAboveBlock, bool allowLayingFromBelow, bool useDefaultAnimation, float laySeconds, ::ItemDescriptor const &eggType, ::ActorDefinitionTrigger const &onLay, ::std::string const &layEggSound)
MCAPI bool $canUse()
MCAPI void $_moveToBlock()
MCAPI void $tick()
MCAPI bool _isTargetBlock(::BlockLegacy const &block) const
MCAPI bool $isValidTarget(::BlockSource &region, ::BlockPos const &pos)
MCAPI void * $ctor(::Mob &mob, float speedModifier, int searchRange, int searchHeight, float goalRadius, ::std::vector<::ItemDescriptor > const &targetBlocks, ::std::vector<::MaterialType > const &targetMaterialsAboveBlock, bool allowLayingFromBelow, bool useDefaultAnimation, float laySeconds, ::ItemDescriptor const &eggType, ::ActorDefinitionTrigger const &onLay, ::std::string const &layEggSound)
MCAPI void $start()
MCAPI bool $canContinueToUse()
Definition Mob.h:47