public class SpawnSet extends java.lang.Object implements java.lang.Iterable<SpawnInfo>
SpawnInfo
s.
https://pixelmonmod.com/wiki/index.php?title=Better_Spawner/Spawn_Set
Created by Hiroku
Modifier and Type | Field and Description |
---|---|
java.lang.String |
id |
java.lang.Float |
setSpecificPokerusRate |
java.lang.Float |
setSpecificShinyRate |
java.util.ArrayList<SpawnInfo> |
spawnInfos |
Constructor and Description |
---|
SpawnSet() |
Modifier and Type | Method and Description |
---|---|
static SpawnSet |
deserialize(java.io.Reader reader) |
static SpawnSet |
deserialize(java.io.Reader reader,
java.lang.Class<? extends SpawnSet> targetedSpawnSetClass) |
static SpawnSet |
deserialize(java.lang.String contents) |
static SpawnSet |
deserialize(java.lang.String contents,
java.lang.Class<? extends SpawnSet> targetedSpawnSetClass) |
void |
export(java.lang.String dir) |
java.util.Iterator<SpawnInfo> |
iterator() |
void |
onImport() |
java.util.ArrayList<SpawnInfo> |
suitableSpawnsFor(AbstractSpawner spawner,
SpawnLocation spawnLocation)
Returns all contained
SpawnInfo s that suit the given SpawnLocation . |
public java.lang.String id
public java.lang.Float setSpecificShinyRate
public java.lang.Float setSpecificPokerusRate
public java.util.ArrayList<SpawnInfo> spawnInfos
public void export(java.lang.String dir)
public void onImport()
public java.util.ArrayList<SpawnInfo> suitableSpawnsFor(AbstractSpawner spawner, SpawnLocation spawnLocation)
SpawnInfo
s that suit the given SpawnLocation
.
This method is not responsible for any random calculations.public static SpawnSet deserialize(java.io.Reader reader)
public static SpawnSet deserialize(java.io.Reader reader, java.lang.Class<? extends SpawnSet> targetedSpawnSetClass)
public static SpawnSet deserialize(java.lang.String contents)
public static SpawnSet deserialize(java.lang.String contents, java.lang.Class<? extends SpawnSet> targetedSpawnSetClass)