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.

import crafttweaker.api.event.tick.MCTickEvent;

Extending MCEvent

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

Methods

getPhase

Return Type: string

MCTickEvent.getPhase() as string
myMCTickEvent.getPhase();

getSide

Return Type: string

MCTickEvent.getSide() as string
myMCTickEvent.getSide();

getType

Return Type: string

MCTickEvent.getType() as string
myMCTickEvent.getType();

isClient

Return Type: boolean

MCTickEvent.isClient() as boolean
myMCTickEvent.isClient();

isEnd

Return Type: boolean

MCTickEvent.isEnd() as boolean
myMCTickEvent.isEnd();

isServer

Return Type: boolean

MCTickEvent.isServer() as boolean
myMCTickEvent.isServer();

isStart

Return Type: boolean

MCTickEvent.isStart() as boolean
myMCTickEvent.isStart();

Properties

名称TypeHas GetterHas Setter
clientboolean型truefalse
終了boolean型truefalse
phasestringtruefalse
serverboolean型truefalse
sidestringtruefalse
開始boolean型truefalse
typestringtruefalse