Skip to content

TickEndEvent

Namespace Mc.Scripting.Events · Kind struct (ref)

public ref struct TickEndEvent : IEvent

Fired at the end of every server tick.

Id 4
Key mc:tick_end
Cancellable no
Fired by the engine yes
Field Type Handlers may write Description
Tick ulong no (readonly) The tick number.
TickNanos long no (readonly) Wall time spent in this tick.
Member Description
TickEndEvent(ulong tick, long tickNanos) Creates the event (for firing it from a plugin; native code builds its own).
public TickEndEvent(ulong tick, long tickNanos)

Creates the event (for firing it from a plugin; native code builds its own). Signature of API 1.0.

Parameters

Name Type Description
tick ulong
tickNanos long
Member Description
ulong Tick { get; } The tick number.
long TickNanos { get; } Wall time spent in this tick.
static ushort CatalogueId { get; } Catalogue id (stable ABI).
static bool IsCancellable { get; } Whether handlers can cancel the event.
static string Key { get; } Registry key of the event.
public ulong Tick { get; }

The tick number.

public long TickNanos { get; }

Wall time spent in this tick.

public static ushort CatalogueId { get; }

Catalogue id (stable ABI).

public static bool IsCancellable { get; }

Whether handlers can cancel the event.

public static string Key { get; }

Registry key of the event.

IEvent