MobSpawnEvent

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.MobSpawnEvent;

Extends

MobSpawnEvent extends EntityEvent.

Members

Getter
script.zs
// MobSpawnEvent.entity as Mob
myMobSpawnEvent.entity

Return Type: Mob

Getter
script.zs
// MobSpawnEvent.level as ServerLevelAccessor
myMobSpawnEvent.level

Return Type: ServerLevelAccessor

Getter
script.zs
// MobSpawnEvent.x as double
myMobSpawnEvent.x

Return Type: double

Getter
script.zs
// MobSpawnEvent.y as double
myMobSpawnEvent.y

Return Type: double

Getter
script.zs
// MobSpawnEvent.z as double
myMobSpawnEvent.z

Return Type: double