MobDespawnEventResult

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.neoforge.api.event.entity.living.spawn.MobDespawnEventResult;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

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

script.zs
// MobDespawnEventResult.ALLOW
<constant:neoforge:events/mobdespawn/result:allow>
// MobDespawnEventResult.DEFAULT
<constant:neoforge:events/mobdespawn/result:default>
// MobDespawnEventResult.DENY
<constant:neoforge:events/mobdespawn/result:deny>