Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
TrialSpawnerBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/actor/VanillaBlockActor.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class BlockPos;
13class BlockSource;
14class CompoundTag;
15class DataLoadHelper;
16class ILevel;
17class SaveContext;
18class TrialSpawner;
20// clang-format on
21
22class TrialSpawnerBlockActor : public ::VanillaBlockActor {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TrialSpawner>> mSpawner;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 TrialSpawnerBlockActor();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ~TrialSpawnerBlockActor() /*override*/ = default;
37
38 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
39
40 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
41
42 virtual void tick(::BlockSource& region) /*override*/;
43
44 virtual void onRemoved(::BlockSource&) /*override*/;
45
46 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
47
48 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCNAPI explicit TrialSpawnerBlockActor(::BlockPos const& pos);
55
56 MCNAPI void setMob(::BlockSource& region, ::ActorDefinitionIdentifier const& identifier, ::Actor* usingActor);
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCNAPI void* $ctor(::BlockPos const& pos);
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCNAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
69
70 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
71
72 MCNAPI void $tick(::BlockSource& region);
73
75
76 MCNAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
77
78 MCNAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
79
80
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftableForBlockActor();
87
89
91
93 // NOLINTEND
94};
Definition Actor.h:116
Definition BlockActorDataPacket.h:19
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition ILevel.h:223
Definition SaveContext.h:5
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource &region)
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
static MCAPI void ** $vftableForBlockActor()
MCAPI void setMob(::BlockSource &region, ::ActorDefinitionIdentifier const &identifier, ::Actor *usingActor)
static MCAPI void ** $vftableForIVanillaTickBlockActorComponent()
static MCAPI void ** $vftableForIVanillaMainBlockActorComponent()
MCAPI void $onRemoved(::BlockSource &)
MCAPI TrialSpawnerBlockActor(::BlockPos const &pos)
MCAPI void $tick(::BlockSource &region)
MCAPI void * $ctor(::BlockPos const &pos)
Definition TrialSpawner.h:26
Definition ActorDefinitionIdentifier.h:15