LeviLamina
Loading...
Searching...
No Matches
SynchedActorDataEntityWrapper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/actor/DataItem.h"
5
6// auto generated inclusion list
7#include "mc/deps/game_refs/WeakRef.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class BlockPos;
13class DataItem;
14class EntityContext;
15class Vec3;
19// clang-format on
20
21class SynchedActorDataEntityWrapper {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::gsl::not_null<::SynchedActorDataComponent*>> mData;
26 ::ll::TypedStorage<8, 8, ::gsl::not_null<::ActorDataFlagComponent*>> mFlagData;
27 ::ll::TypedStorage<8, 8, ::gsl::not_null<::ActorDataDirtyFlagsComponent*>> mDirtyFlags;
28 ::ll::TypedStorage<8, 24, ::WeakRef<::EntityContext>> mEntityContext;
29 // NOLINTEND
30
31public:
32 template <class T>
33 MCAPI void set(ushort id, T const& value);
34
35public:
36 // prevent constructor by default
37 SynchedActorDataEntityWrapper();
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI explicit SynchedActorDataEntityWrapper(::EntityContext& entity);
43
44#ifdef LL_PLAT_C
45 MCAPI void assignValues(
46 ::std::vector<::std::unique_ptr<::DataItem>> const& items,
47 ::Actor& actor,
48 ::std::optional<uint64> targetFrame
49 );
50#endif
51
52 MCAPI float getFloat(ushort id) const;
53
54 MCAPI int getInt(ushort id) const;
55
56#ifdef LL_PLAT_S
57 MCAPI int64 getInt64(ushort id) const;
58#endif
59
60 MCAPI schar getInt8(ushort id) const;
61
62 MCAPI ::BlockPos getPosition(ushort id) const;
63
64 MCAPI short getShort(ushort id) const;
65
66 MCAPI ::std::string const& getString(ushort id) const;
67
68 MCAPI ::Vec3 getVec3(ushort id) const;
69
70 MCAPI bool hasData(ushort id) const;
71
72 MCAPI void markDirty(ushort id);
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI void* $ctor(::EntityContext& entity);
79 // NOLINTEND
80};
Definition Actor.h:114
Definition BlockPos.h:17
Definition DataItem.h:14
Definition EntityContext.h:15
Definition Vec3.h:10
Definition ActorDataDirtyFlagsComponent.h:5
Definition ActorDataFlagComponent.h:9
Definition SynchedActorDataComponent.h:8