Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

EventPhase

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.events.EventPhase;

Description

Represents a phase in which an event is fired and can be listened to.

Various events might have different meanings for phases, so do check the documentation. Usually, you want to use the NORMAL phase (which is specified for you automatically) to catch events occurring in the default phase.

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

EventPhase is an enum with 3 constants. They are accessible like so:

script.zs
// EventPhase.EARLIEST
<constant:eventphase:earliest>
// EventPhase.LATEST
<constant:eventphase:latest>
// EventPhase.NORMAL
<constant:eventphase:normal>