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;
20namespace mce { class Color; }
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 216, ::StructureEditorData> mStructureEditorData;
28 ::ll::TypedStorage<4, 16, ::StructureTelemetryServerData> mTelemetryServerData;
29 ::ll::TypedStorage<1, 1, bool> mIsPowered;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 1
36 virtual void load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper) /*override*/;
37
38 // vIndex: 2
39 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
40
41 // vIndex: 9
42 virtual void onChanged(::BlockSource& region) /*override*/;
43
44 // vIndex: 44
45 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource& region) /*override*/;
46
47 // vIndex: 45
48 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
49
50 // vIndex: 0
51 virtual ~StructureBlockActor() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCNAPI bool _loadStructure(::BlockSource& region, ::BlockPos const& position, ::BaseGameVersion const& version);
58
59 MCNAPI bool _saveStructure(::BlockSource& region, ::BlockPos const& position, bool redstoneTriggered);
60
61 MCNAPI void setPowered(::BlockSource& region, ::BlockPos const& pos, bool shouldTrigger, bool redstoneTriggered);
62
63 MCNAPI void setStructureData(::StructureEditorData const& data);
64 // NOLINTEND
65
66public:
67 // static variables
68 // NOLINTBEGIN
69 MCNAPI static ::mce::Color const& X_AXIS_COLOR();
70
71 MCNAPI static ::mce::Color const& Y_AXIS_COLOR();
72
73 MCNAPI static ::mce::Color const& Z_AXIS_COLOR();
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCNAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
80
81 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
82
83 MCNAPI void $onChanged(::BlockSource& region);
84
85 MCNAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource& region);
86
87 MCNAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
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:205
Definition SaveContext.h:5
Definition StructureBlockActor.h:23
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 ::mce::Color const & Z_AXIS_COLOR()
static MCAPI void ** $vftable()
static MCAPI ::mce::Color const & X_AXIS_COLOR()
static MCAPI ::mce::Color const & Y_AXIS_COLOR()
MCAPI void setPowered(::BlockSource &region, ::BlockPos const &pos, bool shouldTrigger, bool redstoneTriggered)
Definition StructureEditorData.h:18