Class SpawningBossConfig
java.lang.Object
com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
com.pixelmonmod.pixelmon.api.config.SpawningBossConfig
- All Implemented Interfaces:
Config
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
base, config
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
getBossRate
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) float
int
boolean
Methods inherited from class com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
getNode, save
-
Constructor Details
-
SpawningBossConfig
public SpawningBossConfig()
-
-
Method Details
-
getBossRate
public float getBossRate()- Returns:
- The boss spawn rate
-
getBossRate
public float getBossRate(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) - Parameters:
dimension
- The world- Returns:
- The boss spawn rate
-
isBossesAlwaysMegaIfPossible
public boolean isBossesAlwaysMegaIfPossible()- Returns:
- If enabled, all bosses that spawn that could be a Mega boss, are so.
-
getBossSpawnTicks
public int getBossSpawnTicks()- Returns:
- Ticks before a boss Pokémon will spawn.
-
getBossSpawnChance
public float getBossSpawnChance()- Returns:
- Chance that a mega boss Pokémon spawn attempt will succeed.
-