Skip to content

TickStartEvent

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

public ref struct TickStartEvent : IEvent

Fired at the start of every server tick.

Id 3
Key mc:tick_start
Cancellable no
Fired by the engine yes
Field Type Handlers may write Description
Tick ulong no (readonly) The tick number.
Member Description
TickStartEvent(ulong tick) Creates the event (for firing it from a plugin; native code builds its own).
public TickStartEvent(ulong tick)

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
Member Description
ulong Tick { get; } The tick number.
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 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