LeviLamina
Loading...
Searching...
No Matches
StructureBlockActor.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#include "mc/world/level/levelgen/structure/StructureEditorData.h"
8#include "mc/world/level/levelgen/structure/StructureTelemetryServerData.h"
9
10// auto generated forward declare list
11// clang-format off
12class BaseGameVersion;
14class BlockPos;
15class BlockSource;
16class CompoundTag;
17class DataLoadHelper;
18class ILevel;
19class SaveContext;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 216, ::StructureEditorData> mStructureEditorData;
27 ::ll::TypedStorage<4, 16, ::StructureTelemetryServerData> mTelemetryServerData;
28 ::ll::TypedStorage<1, 1, bool> mIsPowered;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 1
35 virtual void load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper) /*override*/;
36
37 // vIndex: 2
38 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
39
40 // vIndex: 10
41 virtual void onChanged(::BlockSource& region) /*override*/;
42
43 // vIndex: 45
44 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource& region) /*override*/;
45
46 // vIndex: 46
47 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
48
49 // vIndex: 0
50 virtual ~StructureBlockActor() /*override*/ = default;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCNAPI bool _loadStructure(::BlockSource& region, ::BlockPos const& position, ::BaseGameVersion const& version);
57
58 MCNAPI bool _saveStructure(::BlockSource& region, ::BlockPos const& position, bool redstoneTriggered);
59
60 MCNAPI void setPowered(::BlockSource& region, ::BlockPos const& pos, bool shouldTrigger, bool redstoneTriggered);
61
62 MCNAPI void setStructureData(::StructureEditorData const& data);
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCNAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
69
70 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
71
72 MCNAPI void $onChanged(::BlockSource& region);
73
74 MCNAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource& region);
75
76 MCNAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition BaseGameVersion.h:8
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:204
Definition SaveContext.h:5
Definition StructureBlockActor.h:22
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &region)
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource &region)
MCAPI void setStructureData(::StructureEditorData const &data)
MCAPI bool _loadStructure(::BlockSource &region, ::BlockPos const &position, ::BaseGameVersion const &version)
MCAPI bool _saveStructure(::BlockSource &region, ::BlockPos const &position, bool redstoneTriggered)
MCAPI void $onChanged(::BlockSource &region)
MCAPI void $load(::ILevel &level, ::CompoundTag const &base, ::DataLoadHelper &dataLoadHelper)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
static MCAPI void ** $vftable()
MCAPI void setPowered(::BlockSource &region, ::BlockPos const &pos, bool shouldTrigger, bool redstoneTriggered)
Definition StructureEditorData.h:18