LeviLamina
Loading...
Searching...
No Matches
MapItemSavedData Class Reference

Classes

struct  ChunkBounds
struct  MapDecorationContext
struct  MapDecorationTypeAndRotation

Public Types

using DecorationCollection

Public Member Functions

MCAPI MapItemSavedData (::ActorUniqueID mapId, bool isDLCworld)
MCAPI void _addDecoration (::MapDecoration::Type type, ::MapItemTrackedActor::UniqueId const &id, ::Vec3 const &position, ::std::string const &label, ::mce::Color const &color)
MCAPI ::std::shared_ptr<::MapItemTrackedActor_addTrackedMapEntity (::MapItemTrackedActor::UniqueId const &key, ::BlockSource &region, ::MapDecoration::Type decorationType)
MCAPI::MapItemSavedData::MapDecorationContext _calculateDecorationLocationAndType (::MapDecoration::Type type, float yRot, int xDeltaFromCenter, int yDeltaFromCenter, ::MapItemTrackedActor::UniqueId const &uniqueId) const
MCAPI::MapItemSavedData::MapDecorationTypeAndRotation _calculatePlayerDecorationTypeAndRotation (::MapDecoration::Type type, float yRot, int xDeltaFromCenter, int yDeltaFromCenter, ::MapItemTrackedActor::UniqueId const &uniqueId) const
MCAPI void _clampOriginWithinLimitedWorld (::BlockPos &origin, ::Vec3 const &worldCenter, int scaledMapSize) const
MCAPI void _deserializeData (::CompoundTag const &tag)
MCAPI bool _isPlayerHoldingMap (::Player &player)
MCAPI void _removeDecoration (::MapItemTrackedActor::UniqueId const &id)
MCAPI void _removeTrackedMapEntity (::MapItemTrackedActor::UniqueId const &key)
MCAPI bool _updateTrackedEntityDecoration (::BlockSource &region, ::std::shared_ptr<::MapItemTrackedActor > trackedActor)
MCAPI void _updateTrackedEntityDecorations (::BlockSource &region)
MCAPI void _updateTrackedPlayerDecorations (::BlockSource &region, ::Player &player, ::Vec3 &decorationPos, ::std::string &decorationLabel, ::mce::Color &decorationColor, ::DimensionType dimensionID, ::MapDecoration::Type &type)
MCAPI ::std::shared_ptr<::MapItemTrackedActoraddTrackedMapEntity (::Actor &entity, ::MapDecoration::Type decorationType)
MCAPI ::std::shared_ptr<::MapItemTrackedActoraddTrackedMapEntity (::BlockPos const &position, ::BlockSource &region, ::MapDecoration::Type decorationType)
MCFOLD bool areClientPixelsDirty () const
MCAPI void checkNeedsResampling ()
MCAPI void copyMapData (::MapItemSavedData const &map)
MCAPI void deserialize (::CompoundTag const &tag)
MCAPI void enableUnlimitedTracking ()
MCFOLD ::std::vector<::ClientTerrainPixel > & getClientPixels ()
MCAPI::SpinLockImpl * getClientSamplingLock ()
MCAPI ::std::unique_ptr<::PacketgetFullDataPacket () const
MCFOLD::ActorUniqueID getMapId () const
MCFOLD::ActorUniqueID getParentMapId () const
MCAPI ::buffer_span< uint > getPixels () const
MCAPI ::std::shared_ptr<::MapItemTrackedActorgetTrackedMapEntity (::Actor &entity)
MCAPI ::std::unique_ptr<::PacketgetUpdatePacket (::Level &, ::BlockPos const &pos) const
MCAPI ::std::unique_ptr<::PacketgetUpdatePacket (::ItemStack const &, ::Level &, ::Actor &entity) const
MCAPI bool hasParentMap () const
MCAPI bool isAdjacent (::MapItemSavedData const &other, int dir) const
MCAPI bool isChunkAllEmpty (::MapItemSavedData::ChunkBounds bb) const
MCAPI bool isFullyExplored () const
MCAPI bool isLocked () const
MCAPI bool needsResampling () const
MCAPI void removeTrackedMapEntity (::BlockPos const &position)
MCAPI void save (::LevelStorage &storage)
MCAPI void serialize (::CompoundTag &tag) const
MCFOLD void setClientPixelsDirty (bool isDirty)
MCAPI void setDirtyForSaveAndPixelData ()
MCAPI void setLocked ()
MCAPI void setMapSection (::buffer_span< uint > src, ::MapItemSavedData::ChunkBounds bb)
MCAPI void setOrigin (::Vec3 origin, int mapScale, ::DimensionType dimension, bool isLegacyLevel, bool isCentered, ::BlockPos const &worldCenter)
MCAPI bool setPixel (uint color, uint x, uint y)
MCAPI void setScale (int mapScale)
MCAPI void setScaleAndParentMapId (int mapScale, ::ActorUniqueID parentMapId)
MCAPI void tickByBlock (::BlockPos const &pos, ::BlockSource &region)
MCAPI void tickCarriedBy (::Actor &player, ::CompoundTag const *item)
MCAPI void trySave (::LevelStorage &storage)
MCAPI void * $ctor (::ActorUniqueID mapId, bool isDLCworld)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI ::std::string getSerializationKey (::ActorUniqueID id)

Public Attributes

::ll::TypedStorage< 8, 8, uint64 > mUpdateInterval
::ll::TypedStorage< 8, 8, ::ActorUniqueIDmMapId
::ll::TypedStorage< 8, 8, ::ActorUniqueIDmParentMapId
::ll::TypedStorage< 1, 1, bool > mIsFullyExplored
::ll::TypedStorage< 1, 1, bool > mPreviewIncomplete
::ll::TypedStorage< 4, 12, ::BlockPosmOrigin
::ll::TypedStorage< 4, 4, ::DimensionType > mDimension
::ll::TypedStorage< 1, 1, schar > mScale
::ll::TypedStorage< 8, 24, ::std::vector< uint > > mPixels
::ll::TypedStorage< 8, 24, ::std::vector<::ClientTerrainPixel > > mClientPixels
::ll::TypedStorage< 8, 24, ::std::vector<::std::shared_ptr<::MapItemTrackedActor > > > mTrackedEntities
::ll::TypedStorage< 1, 1, bool > mUnlimitedTracking
::ll::TypedStorage< 1, 1, bool > mDirtyForSave
::ll::TypedStorage< 1, 1, bool > mDirtyPixelData
::ll::TypedStorage< 1, 1, bool > mLocked
::ll::TypedStorage< 8, 24, ::std::vector<::std::pair<::MapItemTrackedActor::UniqueId, ::std::shared_ptr<::MapDecoration > > > > mDecorations
::ll::TypedStorage< 1, 1, bool > mHasDirtyClientPixels
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::SpinLockImpl > > mClientSamplingLock
::ll::TypedStorage< 1, 1, bool > mNeedsResampling
::ll::TypedStorage< 1, 1, bool > mIsDLCWorld

Member Typedef Documentation

◆ DecorationCollection

using MapItemSavedData::DecorationCollection
Initial value:
::std::vector<::std::pair<::MapItemTrackedActor::UniqueId, ::std::shared_ptr<::MapDecoration>>>

The documentation for this class was generated from the following file: