TickEndEvent
Namespace Mc.Scripting.Events · Kind struct (ref)
public ref struct TickEndEvent : IEventFired 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. |
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
TickEndEvent(ulong tick, long tickNanos) |
Creates the event (for firing it from a plugin; native code builds its own). |
Constructor
Section titled “Constructor”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 |
Properties
Section titled “Properties”| 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.
TickNanos
Section titled “TickNanos”public long TickNanos { get; }Wall time spent in this tick.
CatalogueId
Section titled “CatalogueId”public static ushort CatalogueId { get; }Catalogue id (stable ABI).
IsCancellable
Section titled “IsCancellable”public static bool IsCancellable { get; }Whether handlers can cancel the event.
public static string Key { get; }Registry key of the event.