Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
WorldClock Class Reference

Public Types

enum class  DirtyFlags : uchar { SyncState = 0 , AddTimeMarker = 1 , RemoveTimeMarker = 2 , Count = 3 }
using AddTimeMarkerResult = ::nonstd::expected<::Bedrock::NotNullNonOwnerPtr<::TimeMarker>, ::TimeMarkerError>
using OnPauseSignature = void(::std::string const&)
using OnRestartSignature = void(::std::string const&, int&)
using OnResumeSignature = void(::std::string const&)
using OnTimeMarkerSignature = void(::std::string const&, ::Bedrock::NonOwnerPointer<::TimeMarker const> const)
using OnTimeModifiedSignature = void(::std::string const&, int)

Public Member Functions

MCAPI WorldClock ()
MCAPI WorldClock (::WorldClock const &rhs)
MCAPI void _fireTimeMarkerEvents ()
MCAPI void _sendAddTimeMarker (::PacketSender &packetSender) const
MCAPI void _sendRemoveTimeMarker (::PacketSender &packetSender) const
MCAPI void _sendSyncWorldClockState (::PacketSender &packetSender) const
MCAPI void addTime (int time)
MCAPI ::nonstd::expected<::Bedrock::NotNullNonOwnerPtr<::TimeMarker >, ::TimeMarkerError > addTimeMarker (::TimeMarker const &timeMarker, bool isVanilla)
MCAPI::WorldClock & operator= (::WorldClock const &rhs)
MCAPI ::std::optional<::TimeMarkerError > serverReloadCreatorTimeMarkers (::std::vector<::TimeMarker > const &timeMarkers)
MCAPI void setIsPaused (bool isPaused)
MCAPI ::Bedrock::NonOwnerPointer<::TimeMarker const > const tryGetTimeMarker (uint64 timeMarkerId) const
MCAPI ::Bedrock::NonOwnerPointer<::TimeMarker > const tryGetTimeMarker (uint64 timeMarkerId)
MCAPI void * $ctor ()
MCAPI void * $ctor (::WorldClock const &rhs)

Public Attributes

::ll::TypedStorage< 8, 48, ::HashedString > mName
::ll::TypedStorage< 4, 4, int > mTime
::ll::TypedStorage< 1, 1, bool > mIsPaused
::ll::TypedStorage< 8, 48, ::brstd::flat_map< uint64, ::Bedrock::UniqueOwnerPointer<::TimeMarker >, ::std::less< uint64 >, ::std::vector< uint64 >, ::std::vector<::Bedrock::UniqueOwnerPointer<::TimeMarker > > > > mTimeMarkers
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::LevelEventCoordinator > > mLevelEventCoordinator
::ll::TypedStorage< 8, 24, ::std::vector< uint64 > > mTimeMarkersToAdd
::ll::TypedStorage< 8, 24, ::std::vector< uint64 > > mTimeMarkersToRemove
::ll::TypedStorage< 1, 1, ::Bedrock::EnumSet<::WorldClock::DirtyFlags, 3 > > mDirtyFlags
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::std::string const &), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnPause
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::std::string const &), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnResume
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::std::string const &, int &), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnRestart
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::std::string const &, ::Bedrock::NonOwnerPointer<::TimeMarker const >), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnTimeMarker
::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::std::string const &, int), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > mOnTimeModified
::ll::TypedStorage< 1, 1, bool > mTimeMarkerEventsRanThisTick

Constructor & Destructor Documentation

◆ WorldClock() [1/2]

MCAPI WorldClock::WorldClock ( )
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.

◆ WorldClock() [2/2]

MCAPI WorldClock::WorldClock ( ::WorldClock const & rhs)
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

◆ _fireTimeMarkerEvents()

MCAPI void WorldClock::_fireTimeMarkerEvents ( )
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.

◆ _sendAddTimeMarker()

MCAPI void WorldClock::_sendAddTimeMarker ( ::PacketSender & packetSender) 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.

◆ _sendRemoveTimeMarker()

MCAPI void WorldClock::_sendRemoveTimeMarker ( ::PacketSender & packetSender) 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.

◆ _sendSyncWorldClockState()

MCAPI void WorldClock::_sendSyncWorldClockState ( ::PacketSender & packetSender) 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.

◆ addTime()

MCAPI void WorldClock::addTime ( int time)
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.

◆ addTimeMarker()

MCAPI ::nonstd::expected<::Bedrock::NotNullNonOwnerPtr<::TimeMarker >, ::TimeMarkerError > WorldClock::addTimeMarker ( ::TimeMarker const & timeMarker,
bool isVanilla )
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.

◆ operator=()

MCAPI::WorldClock & WorldClock::operator= ( ::WorldClock const & rhs)
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.

◆ serverReloadCreatorTimeMarkers()

MCAPI ::std::optional<::TimeMarkerError > WorldClock::serverReloadCreatorTimeMarkers ( ::std::vector<::TimeMarker > const & timeMarkers)
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.

◆ setIsPaused()

MCAPI void WorldClock::setIsPaused ( bool isPaused)
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.

◆ tryGetTimeMarker() [1/2]

MCAPI ::Bedrock::NonOwnerPointer<::TimeMarker const > const WorldClock::tryGetTimeMarker ( uint64 timeMarkerId) 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.

◆ tryGetTimeMarker() [2/2]

MCAPI ::Bedrock::NonOwnerPointer<::TimeMarker > const WorldClock::tryGetTimeMarker ( uint64 timeMarkerId)
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() [1/2]

MCAPI void * WorldClock::$ctor ( )
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() [2/2]

MCAPI void * WorldClock::$ctor ( ::WorldClock const & rhs)
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: