Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / TimeValue

Class: TimeValue โ€‹

Defined in: core/values/time.ts:12

A duration in ticks, seconds or days.

Time(20) -> "20" (ticks) Time.seconds(5) -> "5s" Time.days(1) -> "1d"

Implements โ€‹

Constructors โ€‹

Constructor โ€‹

new TimeValue(amount, unit): TimeValue

Defined in: core/values/time.ts:13

Parameters โ€‹

amount โ€‹

number

unit โ€‹

Unit

Returns โ€‹

TimeValue

Accessors โ€‹

ticks โ€‹

Get Signature โ€‹

get ticks(): number

Defined in: core/values/time.ts:19

The duration in game ticks, rounded as schedule rounds it.

Returns โ€‹

number

Methods โ€‹

render() โ€‹

render(): string

Defined in: core/values/time.ts:23

Returns โ€‹

string

Implementation of โ€‹

CommandValue.render

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.