21class BlockNamedTickEventManager {
30 enum class Result :
int {
33 CreationTimeBeforeCurrentTick = 2,
35 TooManyEventsAtPosition = 4,
36 NamespaceHashCollision = 5,
42 struct EventWithDelay {
55 EventWithDelay& operator=(EventWithDelay
const&);
56 EventWithDelay(EventWithDelay
const&);
60 using EventQueue = ::std::multiset<::BlockQueuedNamedTickEvent, ::BlockNamedTickEventManager::EventCompare>;
62 using NamespaceMap = ::std::unordered_map<uint, ::std::string>;
64 using PositionEvents = ::std::vector<
65 ::std::_Tree_const_iterator<::std::_Tree_val<::std::_Tree_simple_types<::BlockQueuedNamedTickEvent>>>>;
67 using PositionEventsMap = ::std::unordered_map<
70 ::std::_Tree_const_iterator<::std::_Tree_val<::std::_Tree_simple_types<::BlockQueuedNamedTickEvent>>>>>;
75 ::ll::TypedStorage<8, 8, ::LevelChunk*> mOwningChunk;
76 ::ll::TypedStorage<8, 16, ::std::multiset<::BlockQueuedNamedTickEvent, ::BlockNamedTickEventManager::EventCompare>>
78 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint, ::std::string>> mNamespaceMap;
85 ::std::_Tree_const_iterator<::std::_Tree_val<::std::_Tree_simple_types<::BlockQueuedNamedTickEvent>>>>>>
87 ::ll::TypedStorage<8, 8, ::Tick> mCurrentTick;
92 BlockNamedTickEventManager();
101 ::std::_Tree_const_iterator<::std::_Tree_val<::std::_Tree_simple_types<::BlockQueuedNamedTickEvent>>> eventIt
104 MCNAPI ::BlockNamedTickEventManager::Result
107 ::std::string_view nameSpace,
108 ::std::string_view eventName,
114 MCNAPI ::std::vector<::BlockNamedTickEventManager::EventWithDelay>
128 MCNAPI ::std::optional<::BlockQueuedNamedTickEvent>
MCAPI::BlockNamedTickEventManager::Result add(::ChunkBlockPos chunkBlockPos, ::BlockType const &blockType, ::std::string_view nameSpace, ::std::string_view eventName, ::Tick creationTime, ::Tick triggerTime)