LeviLamina
Loading...
Searching...
No Matches
BaseMobSpawner.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/world/actor/ActorDefinitionIdentifier.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BlockSource;
13class CompoundTag;
14class SpawnData;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mSpawnDelay;
22 ::ll::TypedStorage<4, 4, float> mSpin;
23 ::ll::TypedStorage<4, 4, float> mOSpin;
24 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mActorDefId;
25 ::ll::TypedStorage<8, 24, ::std::vector<::SpawnData>> mSpawnPotentials;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SpawnData>> mNextSpawnData;
27 ::ll::TypedStorage<4, 4, int> mMinSpawnDelay;
28 ::ll::TypedStorage<4, 4, int> mMaxSpawnDelay;
29 ::ll::TypedStorage<4, 4, int> mSpawnCount;
30 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mDisplayEntity;
31 ::ll::TypedStorage<4, 4, int> mMaxNearbyEntities;
32 ::ll::TypedStorage<4, 4, int> mRequiredPlayerRange;
33 ::ll::TypedStorage<4, 4, int> mSpawnRange;
34 ::ll::TypedStorage<1, 1, bool> mActive;
35 ::ll::TypedStorage<4, 4, float> mDisplayEntityWidth;
36 ::ll::TypedStorage<4, 4, float> mDisplayEntityHeight;
37 ::ll::TypedStorage<4, 4, float> mDisplayEntityScale;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 // vIndex: 0
48 virtual ~BaseMobSpawner() = default;
49
50 // vIndex: 1
51 virtual void tick(::BlockSource& source);
52
53 // vIndex: 2
54 virtual void load(::CompoundTag const& data);
55
56 // vIndex: 3
57 virtual void save(::CompoundTag& tag);
58
59 // vIndex: 4
60 virtual ::BlockPos const& getPos() = 0;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI explicit BaseMobSpawner(::ActorDefinitionIdentifier actorDefId);
67
68 MCAPI void _delay(::BlockSource& source);
69
70 MCAPI ::ActorDefinitionIdentifier getSpawnTypeId() const;
71
72 MCAPI void removeDisplayEntity();
73
74 MCAPI void setEntityId(::ActorDefinitionIdentifier actorDefId);
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor(::ActorDefinitionIdentifier actorDefId);
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI void $tick(::BlockSource& source);
87
88 MCAPI void $load(::CompoundTag const& data);
89
90 MCAPI void $save(::CompoundTag& tag);
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
Definition BaseMobSpawner.h:17
static MCAPI void ** $vftable()
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition CompoundTag.h:13
Definition SpawnData.h:15
Definition ActorDefinitionIdentifier.h:15