public class SpawnInfoCollection extends SpawnInfo
SpawnInfo that contains a collection of others.
https://pixelmonmod.com/wiki/index.php?title=Better_Spawner/Spawn_Info/Collection
| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList<SpawnInfo> |
collection |
java.lang.String |
collectionLabel |
static java.lang.String |
TYPE_ID_COLLECTION |
anticondition, chance, compositeCondition, condition, groupSpawnSettings, GSON, locationTypes, percentage, rarity, rarityMultipliers, requiredSpace, set, spawnInfoTypes, stringLocationTypes, tags, typeID| Constructor and Description |
|---|
SpawnInfoCollection() |
| Modifier and Type | Method and Description |
|---|---|
SpawnAction<? extends net.minecraft.entity.Entity> |
construct(AbstractSpawner spawner,
SpawnLocation spawnLocation)
Constructs a
SpawnAction based on the information in this SpawnInfo, the AbstractSpawner, and the SpawnLocation. |
boolean |
fits(AbstractSpawner spawner,
SpawnLocation spawnLocation)
Calculates if this SpawnInfo is capable of spawning at the given location.
|
void |
onExport() |
void |
onImport() |
java.lang.String |
toString()
Gets the display String for use in /checkspawns.
|
calculateNominalRarity, getAdjustedRaritypublic static final java.lang.String TYPE_ID_COLLECTION
public java.lang.String collectionLabel
public java.util.ArrayList<SpawnInfo> collection
public boolean fits(AbstractSpawner spawner, SpawnLocation spawnLocation)
SpawnInfopublic SpawnAction<? extends net.minecraft.entity.Entity> construct(AbstractSpawner spawner, SpawnLocation spawnLocation)
SpawnInfoSpawnAction based on the information in this SpawnInfo, the AbstractSpawner, and the SpawnLocation.