The event is not cancelable.

The event does not have a result.

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.

ZenScript
Copy
import crafttweaker.api.event.tick.TickEvent;

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

Name: getPhase

Return Type: Phase

ZenScript
Copy
// TickEvent.getPhase() as Phase

myTickEvent.getPhase();

Name: getSide

Return Type: string

ZenScript
Copy
// TickEvent.getSide() as string

myTickEvent.getSide();

Name: getType

Return Type: Type

ZenScript
Copy
// TickEvent.getType() as Type

myTickEvent.getType();

Name: isClient

Return Type: boolean

ZenScript
Copy
// TickEvent.isClient() as boolean

myTickEvent.isClient();

Name: isEnd

Return Type: boolean

ZenScript
Copy
// TickEvent.isEnd() as boolean

myTickEvent.isEnd();

Name: isServer

Return Type: boolean

ZenScript
Copy
// TickEvent.isServer() as boolean

myTickEvent.isServer();

Name: isStart

Return Type: boolean

ZenScript
Copy
// TickEvent.isStart() as boolean

myTickEvent.isStart();
名称类型可获得可设置
名称
client
类型
布尔值
可获得
true
可设置
false
名称
结束
类型
布尔值
可获得
true
可设置
false
名称
phase
类型
Phase
可获得
true
可设置
false
名称
server
类型
布尔值
可获得
true
可设置
false
名称
side
类型
string
可获得
true
可设置
false
名称
开始
类型
布尔值
可获得
true
可设置
false
名称
类型
类型
类型
可获得
true
可设置
false