LeviLamina
Loading...
Searching...
No Matches
SerializedActorBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/nbt/CompoundTag.h"
7#include "mc/world/Direction.h"
8#include "mc/world/actor/ActorDefinitionIdentifier.h"
9#include "mc/world/level/block/actor/BlockActor.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class ActorFactory;
15class Block;
16class BlockActorDataPacket;
17class BlockPos;
18class BlockSource;
19class DataLoadHelper;
20class ILevel;
21class SaveContext;
22class Vec2;
23class Vec3;
24// clang-format on
25
27public:
28 // SerializedActorBlockActor inner types declare
29 // clang-format off
30 struct SerializedActor;
31 // clang-format on
32
33 // SerializedActorBlockActor inner types define
35 public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mActorIdentifier;
39 ::ll::TypedStorage<8, 24, ::CompoundTag> mSaveData;
40 // NOLINTEND
41 };
42
43public:
44 // member variables
45 // NOLINTBEGIN
46 ::ll::TypedStorage<8, 200, ::SerializedActorBlockActor::SerializedActor> mSerializedActor;
47 ::ll::TypedStorage<4, 4, int> mPose;
48 // NOLINTEND
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 // vIndex: 2
54 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
55
56 // vIndex: 1
57 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
58
59 // vIndex: 10
60 virtual void onChanged(::BlockSource& region) /*override*/;
61
62 // vIndex: 17
63 virtual void executeEvent(
65 ::BlockPos const& pos,
66 ::Block const&,
67 ::std::string const& eventName,
68 ::Actor& actor
69 ) /*override*/;
70
71 // vIndex: 23
72 virtual void getDebugText(
73 ::std::vector<::std::string>& outputInfo,
74 ::BlockPos const& debugPos,
75 ::BlockSource const* region
76 ) const /*override*/;
77
78 // vIndex: 41
79 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
80
81 // vIndex: 42
82 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
83
84 // vIndex: 0
85 virtual ~SerializedActorBlockActor() /*override*/ = default;
86 // NOLINTEND
87
88public:
89 // member functions
90 // NOLINTBEGIN
91 MCAPI ::Actor* _loadSerializedActor(
92 ::BlockSource& region,
93 ::ActorFactory& actorFactory,
94 ::Vec3 const& pos,
95 ::Vec2 const& rotation
96 ) const;
97
98 MCAPI void loadUserData(::CompoundTag const& tag);
99
100 MCAPI void saveUserData(::CompoundTag& tag) const;
101
102 MCAPI ::Actor* spawnActor(::BlockSource& region, ::Direction::Type direction);
103 // NOLINTEND
104
105public:
106 // static variables
107 // NOLINTBEGIN
108 MCAPI static ::std::string_view const& ACTOR_IDENTIFIER_TAG_NAME();
109
110 MCAPI static ::std::string_view const& ACTOR_TAG_NAME();
111
112 MCAPI static ::std::string_view const& POSE_TAG_NAME();
113
114 MCAPI static ::std::string_view const& SAVE_DATA_TAG_NAME();
115 // NOLINTEND
116
117public:
118 // virtual function thunks
119 // NOLINTBEGIN
120 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
121
122 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
123
124 MCAPI void $onChanged(::BlockSource& region);
125
126 MCAPI void $executeEvent(
128 ::BlockPos const& pos,
129 ::Block const&,
130 ::std::string const& eventName,
131 ::Actor& actor
132 );
133
134 MCAPI void $getDebugText(
135 ::std::vector<::std::string>& outputInfo,
136 ::BlockPos const& debugPos,
137 ::BlockSource const* region
138 ) const;
139
140 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
141
142 MCAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
143 // NOLINTEND
144
145public:
146 // vftables
147 // NOLINTBEGIN
148 MCNAPI static void** $vftable();
149 // NOLINTEND
150};
Definition ActorFactory.h:33
Definition Actor.h:102
Definition BlockActor.h:32
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition Block.h:37
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:207
Definition SaveContext.h:5
Definition SerializedActorBlockActor.h:26
static MCAPI void ** $vftable()
Definition Vec2.h:5
Definition Vec3.h:10
Definition SerializedActorBlockActor.h:34