32class MapItemSavedData {
46 ::ll::TypedStorage<4, 4, uint> x0;
47 ::ll::TypedStorage<4, 4, uint> z0;
48 ::ll::TypedStorage<4, 4, uint> x1;
49 ::ll::TypedStorage<4, 4, uint> z1;
57 ::ll::TypedStorage<1, 1, ::MapDecoration::Type> type;
58 ::ll::TypedStorage<4, 4, int> x;
59 ::ll::TypedStorage<4, 4, int> y;
60 ::ll::TypedStorage<4, 4, int> rot;
68 ::ll::TypedStorage<1, 1, ::MapDecoration::Type> type;
69 ::ll::TypedStorage<4, 4, int> rotation;
73 using DecorationCollection =
74 ::std::vector<::std::pair<::MapItemTrackedActor::UniqueId, ::std::shared_ptr<::MapDecoration>>>;
79 ::ll::TypedStorage<8, 8, uint64> mUpdateInterval;
80 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mMapId;
81 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mParentMapId;
82 ::ll::TypedStorage<1, 1, bool> mIsFullyExplored;
83 ::ll::TypedStorage<1, 1, bool> mPreviewIncomplete;
84 ::ll::TypedStorage<4, 12, ::BlockPos> mOrigin;
85 ::ll::TypedStorage<4, 4, ::DimensionType> mDimension;
86 ::ll::TypedStorage<1, 1, schar> mScale;
87 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mPixels;
88 ::ll::TypedStorage<8, 24, ::std::vector<::ClientTerrainPixel>> mClientPixels;
89 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::MapItemTrackedActor>>> mTrackedEntities;
90 ::ll::TypedStorage<1, 1, bool> mUnlimitedTracking;
91 ::ll::TypedStorage<1, 1, bool> mDirtyForSave;
92 ::ll::TypedStorage<1, 1, bool> mDirtyPixelData;
93 ::ll::TypedStorage<1, 1, bool> mLocked;
97 ::std::vector<::std::pair<::MapItemTrackedActor::UniqueId, ::std::shared_ptr<::MapDecoration>>>>
99 ::ll::TypedStorage<1, 1, bool> mHasDirtyClientPixels;
100 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SpinLockImpl>> mClientSamplingLock;
101 ::ll::TypedStorage<1, 1, bool> mNeedsResampling;
102 ::ll::TypedStorage<1, 1, bool> mIsDLCWorld;
114 MCAPI
void _addDecoration(
115 ::MapDecoration::Type type,
118 ::std::string
const& label,
122 MCAPI ::std::shared_ptr<::MapItemTrackedActor> _addTrackedMapEntity(
125 ::MapDecoration::Type decorationType
135 _updateTrackedEntityDecoration(
::BlockSource& region, ::std::shared_ptr<::MapItemTrackedActor> trackedActor);
137 MCAPI
void _updateTrackedEntityDecorations(
::BlockSource& region);
139 MCAPI
void copyMapData(::MapItemSavedData
const& map);
141 MCAPI ::std::unique_ptr<::Packet> getFullDataPacket()
const;
143 MCAPI ::std::shared_ptr<::MapItemTrackedActor> getTrackedMapEntity(
::Actor& entity);
145 MCAPI ::std::unique_ptr<::Packet> getUpdatePacket(
::Level&,
::BlockPos const& pos)
const;
149 MCAPI
bool isPlayerHoldingMap(
::Player& player);
152 MCAPI
void replaceDecorations(
153 ::std::vector<::std::shared_ptr<::MapDecoration>> decorations,
154 ::std::vector<::MapItemTrackedActor::UniqueId>
const& uniqueIds
164 MCAPI
void setOrigin(
177 MCAPI ~MapItemSavedData();
184 MCAPI static ::AABB getMapWorldBounds(
::BlockPos const& mapOrigin,
int blocksPerTexel,
int offset);
Definition MapItemSavedData.h:53