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.
import crafttweaker . api.entity . MobSpawnType;
Undocumented Interfaces Comparable <Enum >
MobSpawnType is an enum with 17 constants. They are accessible like so:
< constant : minecraft:mob_spawn_type:breeding >
< constant : minecraft:mob_spawn_type:bucket >
// MobSpawnType.CHUNK_GENERATION
< constant : minecraft:mob_spawn_type:chunk_generation >
< constant : minecraft:mob_spawn_type:command >
// MobSpawnType.CONVERSION
< constant : minecraft:mob_spawn_type:conversion >
// MobSpawnType.DISPENSER
< constant : minecraft:mob_spawn_type:dispenser >
< constant : minecraft:mob_spawn_type:event >
< constant : minecraft:mob_spawn_type:jockey >
// MobSpawnType.MOB_SUMMONED
< constant : minecraft:mob_spawn_type:mob_summoned >
< constant : minecraft:mob_spawn_type:natural >
< constant : minecraft:mob_spawn_type:patrol >
// MobSpawnType.REINFORCEMENT
< constant : minecraft:mob_spawn_type:reinforcement >
// MobSpawnType.SPAWN_EGG
< constant : minecraft:mob_spawn_type:spawn_egg >
< constant : minecraft:mob_spawn_type:spawner >
// MobSpawnType.STRUCTURE
< constant : minecraft:mob_spawn_type:structure >
// MobSpawnType.TRIAL_SPAWNER
< constant : minecraft:mob_spawn_type:trial_spawner >
// MobSpawnType.TRIGGERED
< constant : minecraft:mob_spawn_type:triggered >