Class AbstractSpawner.SpawnerBuilder<T extends AbstractSpawner>
java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.AbstractSpawner.SpawnerBuilder<T>
- Direct Known Subclasses:
TickingSpawner.TickingSpawnerBuilder
- Enclosing class:
- AbstractSpawner
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<E extends AbstractSpawner.SpawnerBuilder<T>>
EaddCondition
(SpawnerCondition condition) <E extends AbstractSpawner.SpawnerBuilder<T>>
EaddRarityMultiplier
(RarityMultiplier rarityMultiplier) <E extends AbstractSpawner.SpawnerBuilder<T>>
EaddSpawnSets
(SpawnSet... spawnSets) <E extends AbstractSpawner.SpawnerBuilder<T>>
EaddSpawnSets
(Collection<SpawnSet> spawnSets) <E extends AbstractSpawner.SpawnerBuilder<T>>
EaddTweak
(SpawningTweak tweak) protected <E> E
getThis()
Used to isolate the unchecked warning to one location.<E extends AbstractSpawner.SpawnerBuilder<T>>
EsetCheckSpawns
(CheckSpawns checkSpawns) <E extends AbstractSpawner.SpawnerBuilder<T>>
EsetConditions
(List<SpawnerCondition> conditions) <E extends AbstractSpawner.SpawnerBuilder<T>>
EsetRarityMultipliers
(List<RarityMultiplier> rarityMultipliers) <E extends AbstractSpawner.SpawnerBuilder<T>>
EsetSelectionAlgorithm
(SelectionAlgorithm selectionAlgorithm) <E extends AbstractSpawner.SpawnerBuilder<T>>
EsetSpawnSets
(SpawnSet... spawnSets) <E extends AbstractSpawner.SpawnerBuilder<T>>
EsetSpawnSets
(List<SpawnSet> spawnSets) <E extends AbstractSpawner.SpawnerBuilder<T>>
EsetTweaks
(List<SpawningTweak> tweaks) <E extends AbstractSpawner.SpawnerBuilder<T>>
E
-
Field Details
-
cacheMap
-
spawnSets
-
selectionAlgorithm
-
checkSpawns
-
tweaks
-
conditions
-
rarityMultipliers
-
-
Constructor Details
-
SpawnerBuilder
public SpawnerBuilder()
-
-
Method Details
-
addSpawnSets
-
addSpawnSets
-
setSpawnSets
-
setSpawnSets
-
setupCache
-
setSelectionAlgorithm
public <E extends AbstractSpawner.SpawnerBuilder<T>> E setSelectionAlgorithm(SelectionAlgorithm selectionAlgorithm) -
setCheckSpawns
-
addTweak
-
setTweaks
-
addCondition
-
setConditions
public <E extends AbstractSpawner.SpawnerBuilder<T>> E setConditions(List<SpawnerCondition> conditions) -
addRarityMultiplier
public <E extends AbstractSpawner.SpawnerBuilder<T>> E addRarityMultiplier(RarityMultiplier rarityMultiplier) -
setRarityMultipliers
public <E extends AbstractSpawner.SpawnerBuilder<T>> E setRarityMultipliers(List<RarityMultiplier> rarityMultipliers) -
apply
-
getThis
protected <E> E getThis()Used to isolate the unchecked warning to one location.
-