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 schar _calculateRotation (float yRot, ::MapDecoration::Type type, ::MapItemTrackedActor::UniqueId const &uniqueId, ::Random &rng) 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_C bool _replaceExistingDecoration (::MapItemTrackedActor::UniqueId const &id, ::std::shared_ptr<::MapDecoration > const &newDecoration)
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 void checkNeedsResampling ()
MCAPI ::std::unique_ptr<::PacketgetFullDataPacket () 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_C void replaceDecorations (::std::vector<::std::shared_ptr<::MapDecoration > > decorations, ::std::vector<::MapItemTrackedActor::UniqueId > const &uniqueIds)
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 void * $ctor (::ActorUniqueID mapId, bool isDLCworld)

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: