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 MCNAPI Occupant(::ActorDefinitionIdentifier actorIdentifier, ::CompoundTag saveData, uint ticksLeftToStay);
46 // NOLINTEND
47
48 public:
49 // constructor thunks
50 // NOLINTBEGIN
51 MCNAPI 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: 8
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 MCNAPI ::Actor* _revive(::BlockSource& region, ::BeehiveBlockActor::Occupant const& occupant, uchar spawnDirection);
82
84
85 MCNAPI void _trySpawnBees(::BlockSource& region);
86
87 MCNAPI void evictAll(::BlockSource& region, bool angry);
88
89 MCNAPI void saveUserData(::CompoundTag& tag) const;
90
91 MCNAPI bool tryAdmit(::Actor& actor);
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCNAPI void $tick(::BlockSource& region);
98
99 MCNAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
100
101 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCNAPI static void** $vftable();
108 // NOLINTEND
109};
Definition Actor.h:103
Definition BeehiveBlockActor.h:19
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI void saveUserData(::CompoundTag &tag) const
MCAPI bool _tickOccupant(::BlockSource &region, ::BeehiveBlockActor::Occupant &occupant)
MCAPI void $tick(::BlockSource &region)
static MCAPI void ** $vftable()
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI bool tryAdmit(::Actor &actor)
MCAPI void evictAll(::BlockSource &region, bool angry)
MCAPI void _trySpawnBees(::BlockSource &region)
MCAPI::Actor * _revive(::BlockSource &region, ::BeehiveBlockActor::Occupant const &occupant, uchar spawnDirection)
Definition BlockActor.h:32
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:205
Definition SaveContext.h:5
Definition ActorDefinitionIdentifier.h:15
Definition BeehiveBlockActor.h:27
MCAPI Occupant(::ActorDefinitionIdentifier actorIdentifier, ::CompoundTag saveData, uint ticksLeftToStay)
MCAPI void * $ctor(::ActorDefinitionIdentifier actorIdentifier, ::CompoundTag saveData, uint ticksLeftToStay)
Definition Alias.h:14