Skip to content
LeviMC
English
AutoLightDark
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 void _deserializeData (::CompoundTag const &tag)
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 copyMapData (::MapItemSavedData const &map)
MCAPI ::std::unique_ptr<::Packet > getFullDataPacket () const
MCAPI ::std::shared_ptr<::MapItemTrackedActor > getTrackedMapEntity (::Actor &entity)
MCAPI ::std::unique_ptr<::Packet > getUpdatePacket (::Level &, ::BlockPos const &pos) const
MCAPI ::std::unique_ptr<::Packet > getUpdatePacket (::ItemStack const &, ::Level &, ::Actor &entity) const
MCAPI bool isPlayerHoldingMap (::Player &player)
MCAPI void save (::LevelStorage &storage)
MCAPI void serialize (::CompoundTag &tag) const
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 void tickByBlock (::BlockPos const &pos, ::BlockSource &region)
MCAPI void tickCarriedBy (::Actor &player, ::CompoundTag const *item)
MCAPI ~MapItemSavedData ()
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, ::ActorUniqueID > mMapId
::ll::TypedStorage< 8, 8, ::ActorUniqueID > mParentMapId
::ll::TypedStorage< 1, 1, bool > mIsFullyExplored
::ll::TypedStorage< 1, 1, bool > mPreviewIncomplete
::ll::TypedStorage< 4, 12, ::BlockPos > mOrigin
::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>>>

Constructor & Destructor Documentation

◆ MapItemSavedData()

MCAPI MapItemSavedData::MapItemSavedData ( ::ActorUniqueID mapId,
bool isDLCworld )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ ~MapItemSavedData()

MCAPI MapItemSavedData::~MapItemSavedData ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _addTrackedMapEntity()

MCAPI ::std::shared_ptr<::MapItemTrackedActor > MapItemSavedData::_addTrackedMapEntity ( ::MapItemTrackedActor::UniqueId const & key,
::BlockSource & region,
::MapDecoration::Type decorationType )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _deserializeData()

MCAPI void MapItemSavedData::_deserializeData ( ::CompoundTag const & tag)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _removeDecoration()

MCAPI void MapItemSavedData::_removeDecoration ( ::MapItemTrackedActor::UniqueId const & id)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _removeTrackedMapEntity()

MCAPI void MapItemSavedData::_removeTrackedMapEntity ( ::MapItemTrackedActor::UniqueId const & key)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _updateTrackedEntityDecoration()

MCAPI bool MapItemSavedData::_updateTrackedEntityDecoration ( ::BlockSource & region,
::std::shared_ptr<::MapItemTrackedActor > trackedActor )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _updateTrackedEntityDecorations()

MCAPI void MapItemSavedData::_updateTrackedEntityDecorations ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ copyMapData()

MCAPI void MapItemSavedData::copyMapData ( ::MapItemSavedData const & map)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getFullDataPacket()

MCAPI ::std::unique_ptr<::Packet > MapItemSavedData::getFullDataPacket ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getTrackedMapEntity()

MCAPI ::std::shared_ptr<::MapItemTrackedActor > MapItemSavedData::getTrackedMapEntity ( ::Actor & entity)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getUpdatePacket() [1/2]

MCAPI ::std::unique_ptr<::Packet > MapItemSavedData::getUpdatePacket ( ::Level & ,
::BlockPos const & pos ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getUpdatePacket() [2/2]

MCAPI ::std::unique_ptr<::Packet > MapItemSavedData::getUpdatePacket ( ::ItemStack const & ,
::Level & ,
::Actor & entity ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ isPlayerHoldingMap()

MCAPI bool MapItemSavedData::isPlayerHoldingMap ( ::Player & player)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ serialize()

MCAPI void MapItemSavedData::serialize ( ::CompoundTag & tag) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ tickByBlock()

MCAPI void MapItemSavedData::tickByBlock ( ::BlockPos const & pos,
::BlockSource & region )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ tickCarriedBy()

MCAPI void MapItemSavedData::tickCarriedBy ( ::Actor & player,
::CompoundTag const * item )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getSerializationKey()

MCAPI ::std::string MapItemSavedData::getSerializationKey ( ::ActorUniqueID id)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * MapItemSavedData::$ctor ( ::ActorUniqueID mapId,
bool isDLCworld )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void MapItemSavedData::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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