LeviLamina
Loading...
Searching...
No Matches
PendingArea.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/platform/UUID.h"
8#include "mc/util/Bounds.h"
9#include "mc/world/level/ticking/TickingAreaLoadMode.h"
10
11// auto generated forward declare list
12// clang-format off
13class CompoundTag;
14struct DimensionType;
16// clang-format on
17
18struct PendingArea {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 16, ::mce::UUID> mUID;
23 ::ll::TypedStorage<8, 32, ::std::string> mName;
24 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityId;
25 ::ll::TypedStorage<4, 48, ::Bounds> mBounds;
26 ::ll::TypedStorage<4, 4, float> mMaxDistToPlayers;
27 ::ll::TypedStorage<1, 1, bool> mIsCircle;
28 ::ll::TypedStorage<1, 1, bool> mAlwaysActive;
29 ::ll::TypedStorage<1, 1, ::TickingAreaLoadMode> mLoadMode;
30 ::ll::TypedStorage<1, 1, bool> mCreated;
31 ::ll::TypedStorage<8, 16, ::std::optional<uint64>> mScope;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 PendingArea();
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI PendingArea(
42 ::mce::UUID uniqueId,
43 ::std::string const& name,
44 ::Bounds const& bounds,
45 bool circle,
46 ::TickingAreaLoadMode loadMode
47 );
48
49 MCAPI ::TickingAreaDescription getDescription() const;
50
51 MCFOLD bool isScoped() const;
52
53 MCAPI bool isStandalone() const;
54
55 MCAPI ::CompoundTag serialize(::DimensionType dimensionId) const;
56
57 MCAPI void setScope(uint64 scope);
58
59 MCAPI ~PendingArea();
60 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65 MCAPI static ::PendingArea createEntityTickingArea(
66 ::mce::UUID uniqueId,
67 ::ActorUniqueID entityId,
68 ::Bounds const& bounds,
69 bool alwaysActive,
70 float maxDistToPlayers
71 );
72
73 MCAPI static ::PendingArea createTickingArea(
74 ::mce::UUID uniqueId,
75 ::std::string const& name,
76 ::Bounds const& bounds,
77 bool circle,
78 ::TickingAreaLoadMode loadMode
79 );
80
81 MCAPI static ::PendingArea load(::std::string const& key, ::CompoundTag const& tag);
82
83 MCAPI static bool validTag(::CompoundTag const& tag);
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCAPI void* $ctor(
90 ::mce::UUID uniqueId,
91 ::std::string const& name,
92 ::Bounds const& bounds,
93 bool circle,
94 ::TickingAreaLoadMode loadMode
95 );
96 // NOLINTEND
97
98public:
99 // destructor thunk
100 // NOLINTBEGIN
101 MCFOLD void $dtor();
102 // NOLINTEND
103};
Definition CompoundTag.h:23
Definition UUID.h:7
Definition ActorUniqueID.h:10
Definition Bounds.h:8
Definition DimensionType.h:5
Definition TickingAreaDescription.h:9