The event is not cancelable.

The event does not have a result.

Importare la Classe

Link to importare-la-classe

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();
NomeTipoHa GetterHa SetterDescrizione
Nome
client
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
fine
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
phase
Tipo
string
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
server
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
side
Tipo
string
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
inizio
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
type
Tipo
string
Ha Getter
Ha Setter
no
Descrizione
No Description Provided