TickEvent
Link to tickevent
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 Copyimport crafttweaker.api.event.tick.TickEvent;
Extending Event
Link to extending-event
TickEvent extends Event. That means all methods available in Event are also available in TickEvent
Metodi
Link to metodi
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: 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();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome client | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome fine | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome phase | Tipo Phase | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome server | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome side | Tipo string | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome inizio | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome type | Tipo Tipo | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |