Home Commands Examples Getting Started With Scripts Global Keywords

MobSpawnType

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.entity.MobSpawnType;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

MobSpawnType is an enum with 17 constants. They are accessible like so:

script.zs
MobSpawnType.BREEDING
MobSpawnType.BUCKET
MobSpawnType.CHUNK_GENERATION
MobSpawnType.COMMAND
MobSpawnType.CONVERSION
MobSpawnType.DISPENSER
MobSpawnType.EVENT
MobSpawnType.JOCKEY
MobSpawnType.MOB_SUMMONED
MobSpawnType.NATURAL
MobSpawnType.PATROL
MobSpawnType.REINFORCEMENT
MobSpawnType.SPAWN_EGG
MobSpawnType.SPAWNER
MobSpawnType.STRUCTURE
MobSpawnType.TRIAL_SPAWNER
MobSpawnType.TRIGGERED