Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PlaceBlockGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/IntRange.h"
7#include "mc/world/actor/ActorDefinitionTrigger.h"
8#include "mc/world/actor/ActorFilterGroup.h"
9#include "mc/world/actor/ai/goal/BaseGoal.h"
10#include "mc/world/level/block/BlockDescriptor.h"
11
12// auto generated forward declare list
13// clang-format off
14class Mob;
15struct GoalId;
16// clang-format on
17
18class PlaceBlockGoal : public ::BaseGoal {
19public:
20 // PlaceBlockGoal inner types declare
21 // clang-format off
23 // clang-format on
24
25 // PlaceBlockGoal inner types define
27 public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 176, ::BlockDescriptor> mBlock;
31 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mFilter;
32 ::ll::TypedStorage<4, 4, int> mWeight;
33 // NOLINTEND
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
40 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mPlaceableCarriedBlocks;
41 ::ll::TypedStorage<8, 24, ::std::vector<::PlaceBlockGoal::WeightedBlockDescriptor>> mRandomlyPlaceableBlocks;
42 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mCanPlace;
43 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnPlace;
44 ::ll::TypedStorage<4, 8, ::IntRange> mXZRange;
45 ::ll::TypedStorage<4, 8, ::IntRange> mYRange;
46 ::ll::TypedStorage<4, 4, float> mChance;
47 ::ll::TypedStorage<1, 1, bool> mAffectedByGriefingRule;
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 PlaceBlockGoal& operator=(PlaceBlockGoal const&);
53 PlaceBlockGoal(PlaceBlockGoal const&);
54 PlaceBlockGoal();
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 virtual bool canUse() /*override*/;
60
61 virtual void tick() /*override*/;
62
63 virtual void appendDebugInfo(::std::string& str) const /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCNAPI PlaceBlockGoal(::Mob& mob, ::std::string name, ::GoalId const& goalId);
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCNAPI void* $ctor(::Mob& mob, ::std::string name, ::GoalId const& goalId);
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI bool $canUse();
82
83 MCAPI void $tick();
84
85 MCNAPI void $appendDebugInfo(::std::string& str) const;
86
87
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition BaseGoal.h:12
MCAPI void $tick()
Definition Mob.h:58
static MCAPI void ** $vftable()
MCAPI void * $ctor(::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI PlaceBlockGoal(::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI void $appendDebugInfo(::std::string &str) const
Definition GoalId.h:5
Definition PlaceBlockGoal.h:26