LeviLamina
Loading...
Searching...
No Matches
BeehiveBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/actor/BlockActor.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockSource;
12class CompoundTag;
13class DataLoadHelper;
14class ILevel;
15class SaveContext;
17// clang-format on
18
20public:
21 // BeehiveBlockActor inner types declare
22 // clang-format off
23 struct Occupant;
24 // clang-format on
25
26 // BeehiveBlockActor inner types define
27 struct Occupant {
28 public:
29 // member variables
30 // NOLINTBEGIN
34 // NOLINTEND
35
36 public:
37 // prevent constructor by default
38 Occupant& operator=(Occupant const&);
39 Occupant(Occupant const&);
40 Occupant();
41
42 public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI Occupant(::ActorDefinitionIdentifier actorIdentifier, ::CompoundTag saveData, uint ticksLeftToStay);
46 // NOLINTEND
47
48 public:
49 // constructor thunks
50 // NOLINTBEGIN
51 MCAPI void* $ctor(::ActorDefinitionIdentifier actorIdentifier, ::CompoundTag saveData, uint ticksLeftToStay);
52 // NOLINTEND
53 };
54
55public:
56 // member variables
57 // NOLINTBEGIN
58 ::ll::TypedStorage<8, 24, ::std::vector<::BeehiveBlockActor::Occupant>> mOccupants;
59 ::ll::TypedStorage<1, 1, bool> mShouldSpawnBees;
60 // NOLINTEND
61
62public:
63 // virtual functions
64 // NOLINTBEGIN
65 // vIndex: 7
66 virtual void tick(::BlockSource& region) /*override*/;
67
68 // vIndex: 1
69 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
70
71 // vIndex: 2
72 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
73
74 // vIndex: 0
75 virtual ~BeehiveBlockActor() /*override*/ = default;
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCAPI ::Actor* _revive(::BlockSource& region, ::BeehiveBlockActor::Occupant const& occupant, uchar spawnDirection);
82
83 MCAPI bool _tickOccupant(::BlockSource& region, ::BeehiveBlockActor::Occupant& occupant);
84
85 MCAPI void _trySpawnBees(::BlockSource& region);
86
87 MCAPI void evictAll(::BlockSource& region, bool angry);
88
89 MCAPI void saveUserData(::CompoundTag& tag) const;
90
91 MCAPI bool tryAdmit(::Actor& actor);
92 // NOLINTEND
93
94public:
95 // destructor thunk
96 // NOLINTBEGIN
97
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCAPI void $tick(::BlockSource& region);
104
105 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
106
107 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCAPI static void** $vftable();
114 // NOLINTEND
115};
Definition Actor.h:104
Definition BeehiveBlockActor.h:19
Definition BlockActor.h:32
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:203
Definition SaveContext.h:5
Definition ActorDefinitionIdentifier.h:13
Definition BeehiveBlockActor.h:27
Definition Alias.h:14