Home Migration Guide Getting Started With Scripts Commands Examples
BracketHandlers

MCTickEvent

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

Extending MCEvent

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

Methods

Return Type: string

script.zs
// MCTickEvent.getPhase() as string
myMCTickEvent.getPhase();

Return Type: string

script.zs
// MCTickEvent.getSide() as string
myMCTickEvent.getSide();

Return Type: string

script.zs
// MCTickEvent.getType() as string
myMCTickEvent.getType();

Return Type: boolean

script.zs
// MCTickEvent.isClient() as boolean
myMCTickEvent.isClient();

Return Type: boolean

script.zs
// MCTickEvent.isEnd() as boolean
myMCTickEvent.isEnd();

Return Type: boolean

script.zs
// MCTickEvent.isServer() as boolean
myMCTickEvent.isServer();

Return Type: boolean

script.zs
// MCTickEvent.isStart() as boolean
myMCTickEvent.isStart();

Properties

NameTypeHas GetterHas SetterDescription
Name
client
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
end
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
phase
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
server
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
side
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
start
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
type
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided