TickEvent

The event is not cancelable.

The event does not have a result.

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import crafttweaker.api.event.tick.TickEvent;

Extending Event

TickEvent extends Event. That means all methods available in Event are also available in TickEvent

Methods

Return Type: Phase

script.zs
// TickEvent.getPhase() as Phase
myTickEvent.getPhase();

Return Type: string

script.zs
// TickEvent.getSide() as string
myTickEvent.getSide();

Return Type: Type

script.zs
// TickEvent.getType() as Type
myTickEvent.getType();

Return Type: boolean

script.zs
// TickEvent.isClient() as boolean
myTickEvent.isClient();

Return Type: boolean

script.zs
// TickEvent.isEnd() as boolean
myTickEvent.isEnd();

Return Type: boolean

script.zs
// TickEvent.isServer() as boolean
myTickEvent.isServer();

Return Type: boolean

script.zs
// TickEvent.isStart() as boolean
myTickEvent.isStart();

Properties

NameTypeHas GetterHas Setter
Name
client
Type
boolean
Has Getter
true
Has Setter
false
Name
end
Type
boolean
Has Getter
true
Has Setter
false
Name
phase
Type
Phase
Has Getter
true
Has Setter
false
Name
server
Type
boolean
Has Getter
true
Has Setter
false
Name
side
Type
string
Has Getter
true
Has Setter
false
Name
start
Type
boolean
Has Getter
true
Has Setter
false
Name
type
Type
Type
Has Getter
true
Has Setter
false