Interface SpawnerData
- All Superinterfaces:
Wrapper
Describes an entity type and the number of entities in one natural spawn attempt.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptioncount()The provider used to select the number of entities in a spawn attempt.static SpawnerDataReads Minecraft spawner data.The natural mob category assigned totype()by Minecraft.static SpawnerDataof(EntityType type, int count) Creates spawn data with a fixed group size.static SpawnerDataof(EntityType type, IntProvider count) Creates spawn data with a configurable group size.type()The entity type spawned by this entry.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
type
The entity type spawned by this entry.- Returns:
- the entity type to spawn
- Since:
- 4.0.0
-
count
The provider used to select the number of entities in a spawn attempt.- Returns:
- the spawn count provider
- Since:
- 4.0.0
-
naturalCategory
The natural mob category assigned totype()by Minecraft.- Returns:
- the entity type's natural mob category
- Since:
- 4.0.0
-
of
Creates spawn data with a fixed group size.- Parameters:
type- the entity type to spawncount- the fixed number of entities to spawn- Returns:
- new spawn data
- Since:
- 4.0.0
-
of
Creates spawn data with a configurable group size.- Parameters:
type- the entity type to spawncount- the provider used to select the number of entities to spawn- Returns:
- new spawn data
- Since:
- 4.0.0
-
decode
Reads Minecraft spawner data.- Parameters:
minecraftSpawnerData- the Minecraft spawner data to read- Returns:
- the wrapped spawner data
- Since:
- 4.0.0
-