LeviLamina
Loading...
Searching...
No Matches
MapItemTrackedActor.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/world/level/BlockPos.h"
8#include "mc/world/level/dimension/DimensionType.h"
9#include "mc/world/level/saveddata/maps/MapDecoration.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockSource;
14class ChunkViewSource;
15class CompoundTag;
17class Packet;
18// clang-format on
19
20class MapItemTrackedActor {
21public:
22 // MapItemTrackedActor inner types declare
23 // clang-format off
24 struct UniqueId;
25 // clang-format on
26
27 // MapItemTrackedActor inner types define
28 enum class Type : int {
29 Entity = 0,
30 BlockEntity = 1,
31 Other = 2,
32 };
33
34 struct UniqueId {
35 public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<4, 4, ::MapItemTrackedActor::Type> type;
39 ::ll::TypedStorage<8, 8, ::ActorUniqueID> keyEntityId;
40 ::ll::TypedStorage<4, 12, ::BlockPos> keyBlockPos;
41 // NOLINTEND
42
43 public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI void load(::CompoundTag const& tag);
47
48 MCAPI void save(::CompoundTag& tag) const;
49 // NOLINTEND
50 };
51
52public:
53 // member variables
54 // NOLINTBEGIN
55 ::ll::TypedStorage<8, 32, ::MapItemTrackedActor::UniqueId> mUniqueId;
56 ::ll::TypedStorage<1, 1, bool> mNeedsResend;
57 ::ll::TypedStorage<4, 4, uint> mMinDirtyX;
58 ::ll::TypedStorage<4, 4, uint> mMinDirtyY;
59 ::ll::TypedStorage<4, 4, uint> mMaxDirtyX;
60 ::ll::TypedStorage<4, 4, uint> mMaxDirtyY;
61 ::ll::TypedStorage<4, 4, int> mTick;
62 ::ll::TypedStorage<4, 4, float> mLastRotation;
63 ::ll::TypedStorage<1, 1, ::MapDecoration::Type> mDecorationType;
64 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionId;
65 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkViewSource;
66 // NOLINTEND
67
68public:
69 // prevent constructor by default
70 MapItemTrackedActor();
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI MapItemTrackedActor(::MapItemTrackedActor::UniqueId const& id, ::BlockSource& region);
76
77 MCAPI float getDecorationRotation(::BlockSource& region);
78
79 MCAPI ::std::unique_ptr<::Packet> nextUpdatePacket(::MapItemSavedData const& savedData);
80
81 MCFOLD void setNeedsResend();
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCAPI void* $ctor(::MapItemTrackedActor::UniqueId const& id, ::BlockSource& region);
88 // NOLINTEND
89};
Definition BlockSource.h:73
Definition ChunkViewSource.h:23
Definition CompoundTag.h:23
Definition MapItemSavedData.h:32
Definition Packet.h:31
Definition MapItemTrackedActor.h:34