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

Classes

struct  EventCompare
struct  EventWithDelay

Public Types

enum class  Result : int {
  Success = 0 , NoEventsHandled = 1 , CreationTimeBeforeCurrentTick = 2 , EmptyNamespace = 3 ,
  TooManyEventsAtPosition = 4 , NamespaceHashCollision = 5 , InvalidEvent = 6
}
using EventQueue = ::std::multiset<::BlockQueuedNamedTickEvent, ::BlockNamedTickEventManager::EventCompare>
using NamespaceMap = ::std::unordered_map<uint, ::std::string>
using PositionEvents
using PositionEventsMap

Public Member Functions

MCAPI BlockNamedTickEventManager (::LevelChunk &owningChunk)
MCAPI void _removeFromPositionIndex (::ChunkBlockPos const &chunkBlockPos, ::std::_Tree_const_iterator<::std::_Tree_val<::std::_Tree_simple_types<::BlockQueuedNamedTickEvent > > > eventIt)
MCAPI::BlockNamedTickEventManager::Result add (::ChunkBlockPos chunkBlockPos, ::BlockType const &blockType, ::std::string_view nameSpace, ::std::string_view eventName, ::Tick creationTime, ::Tick triggerTime)
MCAPI void deserialize (::CompoundTag const &tag, ::BlockTypeRegistry const &registry)
MCAPI ::std::vector<::BlockNamedTickEventManager::EventWithDelay > getEventsInArea (::BoundingBox const &boundingBox, ::Tick const &currentTick) const
MCAPI void remove (::ChunkBlockPos const &chunkBlockPos)
MCAPI void remove (::brstd::function_ref< bool(::BlockQueuedNamedTickEvent const &)> removeCondition)
MCAPI void remove (::ChunkBlockPos const &chunkBlockPos, ::std::string_view nameSpace, ::std::string_view eventName)
MCAPI void serialize (::CompoundTag &tag) const
MCAPI::BlockNamedTickEventManager::Result tick (::BlockSource &region, ::Tick const &until)
MCAPI ::std::optional<::BlockQueuedNamedTickEvent > tryGet (::ChunkBlockPos const &chunkBlockPos, ::std::string_view nameSpace, ::std::string_view eventName) const
MCAPI void * $ctor (::LevelChunk &owningChunk)

Public Attributes

::ll::TypedStorage< 8, 8, ::LevelChunk * > mOwningChunk
::ll::TypedStorage< 8, 16, ::std::multiset<::BlockQueuedNamedTickEvent, ::BlockNamedTickEventManager::EventCompare > > mQueue
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint, ::std::string > > mNamespaceMap
::ll::TypedStorage< 8, 64, ::std::unordered_map< ::ChunkBlockPos, ::std::vector< ::std::_Tree_const_iterator<::std::_Tree_val<::std::_Tree_simple_types<::BlockQueuedNamedTickEvent > > > > > > mPositionEvents
::ll::TypedStorage< 8, 8, ::Tick > mCurrentTick

Member Typedef Documentation

◆ PositionEvents

using BlockNamedTickEventManager::PositionEvents
Initial value:
::std::vector<
::std::_Tree_const_iterator<::std::_Tree_val<::std::_Tree_simple_types<::BlockQueuedNamedTickEvent>>>>

◆ PositionEventsMap

using BlockNamedTickEventManager::PositionEventsMap
Initial value:
::std::unordered_map<
::std::vector<
::std::_Tree_const_iterator<::std::_Tree_val<::std::_Tree_simple_types<::BlockQueuedNamedTickEvent>>>>>
Definition ChunkBlockPos.h:10

Constructor & Destructor Documentation

◆ BlockNamedTickEventManager()

MCAPI BlockNamedTickEventManager::BlockNamedTickEventManager ( ::LevelChunk & owningChunk)
explicit
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

◆ _removeFromPositionIndex()

MCAPI void BlockNamedTickEventManager::_removeFromPositionIndex ( ::ChunkBlockPos const & chunkBlockPos,
::std::_Tree_const_iterator<::std::_Tree_val<::std::_Tree_simple_types<::BlockQueuedNamedTickEvent > > > eventIt )
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.

◆ add()

MCAPI::BlockNamedTickEventManager::Result BlockNamedTickEventManager::add ( ::ChunkBlockPos chunkBlockPos,
::BlockType const & blockType,
::std::string_view nameSpace,
::std::string_view eventName,
::Tick creationTime,
::Tick triggerTime )
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.

◆ deserialize()

MCAPI void BlockNamedTickEventManager::deserialize ( ::CompoundTag const & tag,
::BlockTypeRegistry const & registry )
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.

◆ getEventsInArea()

MCAPI ::std::vector<::BlockNamedTickEventManager::EventWithDelay > BlockNamedTickEventManager::getEventsInArea ( ::BoundingBox const & boundingBox,
::Tick const & currentTick ) 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.

◆ remove() [1/3]

MCAPI void BlockNamedTickEventManager::remove ( ::ChunkBlockPos const & chunkBlockPos)
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.

◆ remove() [2/3]

MCAPI void BlockNamedTickEventManager::remove ( ::brstd::function_ref< bool(::BlockQueuedNamedTickEvent const &)> removeCondition)
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.

◆ remove() [3/3]

MCAPI void BlockNamedTickEventManager::remove ( ::ChunkBlockPos const & chunkBlockPos,
::std::string_view nameSpace,
::std::string_view eventName )
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 BlockNamedTickEventManager::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.

◆ tick()

MCAPI::BlockNamedTickEventManager::Result BlockNamedTickEventManager::tick ( ::BlockSource & region,
::Tick const & until )
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.

◆ tryGet()

MCAPI ::std::optional<::BlockQueuedNamedTickEvent > BlockNamedTickEventManager::tryGet ( ::ChunkBlockPos const & chunkBlockPos,
::std::string_view nameSpace,
::std::string_view eventName ) 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.

◆ $ctor()

MCAPI void * BlockNamedTickEventManager::$ctor ( ::LevelChunk & owningChunk)
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: