Home Commands Examples Getting Started With Scripts Global Keywords
BracketHandlers ForgeBracketDumpers ForgeBracketValidators

EventResult

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.forge.api.event.EventResult;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

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

script.zs
// EventResult.ALLOW
<constant:forge:event/result:allow>
// EventResult.DEFAULT
<constant:forge:event/result:default>
// EventResult.DENY
<constant:forge:event/result:deny>