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.MCTickEvent;

Extending MCEvent

Link to extending-mcevent

MCTickEvent extends MCEvent. That means all methods available in MCEvent are also available in MCTickEvent

Name: getPhase

Return Type: string

ZenScript
Copy
// MCTickEvent.getPhase() as string

myMCTickEvent.getPhase();

Name: getSide

Return Type: string

ZenScript
Copy
// MCTickEvent.getSide() as string

myMCTickEvent.getSide();

Name: getType

Return Type: string

ZenScript
Copy
// MCTickEvent.getType() as string

myMCTickEvent.getType();

Name: isClient

Return Type: boolean

ZenScript
Copy
// MCTickEvent.isClient() as boolean

myMCTickEvent.isClient();

Name: isEnd

Return Type: boolean

ZenScript
Copy
// MCTickEvent.isEnd() as boolean

myMCTickEvent.isEnd();

Name: isServer

Return Type: boolean

ZenScript
Copy
// MCTickEvent.isServer() as boolean

myMCTickEvent.isServer();

Name: isStart

Return Type: boolean

ZenScript
Copy
// MCTickEvent.isStart() as boolean

myMCTickEvent.isStart();
名称类型可获得可设置描述
名称
client
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
结束
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
phase
类型
string
可获得
true
可设置
false
描述
No Description Provided
名称
server
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
side
类型
string
可获得
true
可设置
false
描述
No Description Provided
名称
开始
类型
布尔值
可获得
true
可设置
false
描述
No Description Provided
名称
类型
类型
string
可获得
true
可设置
false
描述
No Description Provided