Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptModuleMinecraft::ScriptTickSignal Class Reference

Classes

struct  PendingUnsubscribe
struct  Slot
struct  PendingSubscribe

Public Types

enum class  IntervalStatus : uint { Once = 0 , Repeat = 1 , Expired = 2 }

Public Member Functions

MCAPI void processTick (uint currentTick, ::ScriptDeferredFlushTracker &deferredTracker)
MCAPI uint scheduleInterval (::Scripting::Closure< void()> &&closure, uint interval, uint currentTick)
MCAPI uint scheduleTimeout (::Scripting::Closure< void()> &&closure, uint delay, uint currentTick)
MCAPI uint scheduleTimeout (::std::function< void()> function, uint delay, uint currentTick)
MCAPI uint scheduleTimeoutSafe (::Scripting::Closure< void()> &&closure, uint currentTick)

Public Attributes

::ll::TypedStorage< 4, 4, uint > mNextId
::ll::TypedStorage< 1, 1, bool > mDispatching
::ll::TypedStorage< 8, 24, ::std::vector<::ScriptModuleMinecraft::ScriptTickSignal::Slot > > mActive
::ll::TypedStorage< 8, 24, ::std::vector<::std::variant< ::ScriptModuleMinecraft::ScriptTickSignal::PendingSubscribe, ::ScriptModuleMinecraft::ScriptTickSignal::PendingUnsubscribe > > > mPending

Member Function Documentation

◆ processTick()

MCAPI void ScriptModuleMinecraft::ScriptTickSignal::processTick ( uint currentTick,
::ScriptDeferredFlushTracker & deferredTracker )
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.

◆ scheduleInterval()

MCAPI uint ScriptModuleMinecraft::ScriptTickSignal::scheduleInterval ( ::Scripting::Closure< void()> && closure,
uint interval,
uint currentTick )
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.

◆ scheduleTimeout() [1/2]

MCAPI uint ScriptModuleMinecraft::ScriptTickSignal::scheduleTimeout ( ::Scripting::Closure< void()> && closure,
uint delay,
uint currentTick )
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.

◆ scheduleTimeout() [2/2]

MCAPI uint ScriptModuleMinecraft::ScriptTickSignal::scheduleTimeout ( ::std::function< void()> function,
uint delay,
uint currentTick )
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.

◆ scheduleTimeoutSafe()

MCAPI uint ScriptModuleMinecraft::ScriptTickSignal::scheduleTimeoutSafe ( ::Scripting::Closure< void()> && closure,
uint currentTick )
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: