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
Modifier and Type | Field and Description |
---|---|
static java.lang.Class<? extends SpawnSet> |
CLASS |
static com.google.gson.Gson |
GSON |
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) |
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 static final java.lang.Class<? extends SpawnSet> CLASS
public static final com.google.gson.Gson GSON
public java.lang.String id
public java.lang.Float setSpecificShinyRate
public java.lang.Float setSpecificPokerusRate
public java.util.ArrayList<SpawnInfo> spawnInfos
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)