Class SpawningGeneralConfig

java.lang.Object
com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
com.pixelmonmod.pixelmon.api.config.SpawningGeneralConfig
All Implemented Interfaces:
Config

@ConfigSerializable public class SpawningGeneralConfig extends AbstractYamlConfig
  • Constructor Details

    • SpawningGeneralConfig

      public SpawningGeneralConfig()
  • Method Details

    • getDespawnRadius

      public int getDespawnRadius()
      Returns:
      The minimum number of blocks away from the nearest player a Pokémon can be when despawned.
    • getShinyRate

      public float getShinyRate()
      Returns:
      The chance of a Pokémon being Shiny.
    • getShinyCharmMultiplier

      public float getShinyCharmMultiplier()
      Returns:
      The multiplier by which to multiply the shiny chance if the player has the shiny charm.
    • getShinyRate

      public float getShinyRate(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
      Parameters:
      dimension - The dimension for the chance
      Returns:
      The chance of a Pokémon being Shiny.
    • isSpawnLevelsCloserToPlayerLevels

      public boolean isSpawnLevelsCloserToPlayerLevels()
      Returns:
      Whether or not to tweak levels of wild Pokémon to better suit the player's party.
    • isSpawnLevelsIncreaseInCaves

      public boolean isSpawnLevelsIncreaseInCaves()
      Returns:
      Whether or not to tweak levels of wild Pokémon spawning in caves to increase the difficulty
    • checkInterval

      public boolean checkInterval(String interval)
    • consumeInterval

      public void consumeInterval(String interval)
    • getCaveMaxMultiplier

      public int getCaveMaxMultiplier()
      Returns:
      Maximum multiplier of the Pokémon's pokemonLevel in caves
    • getTransformToDittoOnCatch

      public double getTransformToDittoOnCatch()
      Returns:
      Chance for a wild Pokémon to turn into a Ditto on capture.
    • getCanTransformToDittoOnCatch

      public List<String> getCanTransformToDittoOnCatch()
      Returns:
      Pokémon which can transform to Ditto.
    • getHiddenAbilityRate

      @Deprecated public float getHiddenAbilityRate()
      Deprecated.
      Returns:
      Hidden ability spawn rate
    • getHiddenAbilityRate

      @Deprecated public float getHiddenAbilityRate(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
      Deprecated.
      Parameters:
      dimension - The world
      Returns:
      Hidden ability spawn rate
    • shouldHaveHiddenAbility

      public boolean shouldHaveHiddenAbility(Stats form, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
    • shouldHaveHiddenAbility

      public boolean shouldHaveHiddenAbility(float rate)
    • getGigantamaxFactorRate

      public float getGigantamaxFactorRate()
      Returns:
      The chance of a Pokémon having the Gigantamax Factor.
    • getGigantamaxFactorRate

      public float getGigantamaxFactorRate(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
      Returns:
      The chance of a Pokémon having the Gigantamax Factor.
    • isUseRecentLevelMoves

      public boolean isUseRecentLevelMoves()
      Returns:
      Whether Pokémon will start with the most recent pokemonLevel-up moves in their pokemonLevel-up movepools.
    • isDespawnOnFleeOrLoss

      public boolean isDespawnOnFleeOrLoss()
      Returns:
      Whether wild Pokémon despawn when the battle ends.
    • getLureFluteDuration

      public int getLureFluteDuration()
      Returns:
      How long in seconds the effects of Black and White Flutes last. Set to 0 to disable.
    • getLureFluteLevelModifier

      public int getLureFluteLevelModifier()
      Returns:
      Up to how many levels the Black and White Flutes can affect spawning by.
    • getBlockedGenerations

      public List<Integer> getBlockedGenerations()
      Returns:
      If the list contains a generation flag then it won't spawn naturally
    • isGenerationEnabled

      public boolean isGenerationEnabled(int generation)
      Checks if a certain Generation is enabled.
      Parameters:
      generation - The Generation to check.
      Returns:
      Whether the specified Generation is enabled.
    • allGenerationsDisabled

      public boolean allGenerationsDisabled()
      Checks if all Generations are disabled.
      Returns:
      Whether all Generations are disabled.
    • allGenerationsEnabled

      public boolean allGenerationsEnabled()
      Checks if all Generations are enabled.
      Returns:
      Whether all Generations are enabled.
    • getRandomEnabledGeneration

      public int getRandomEnabledGeneration()
      Returns:
      A random generation from the enabled generations as an integer
      Throws:
      IllegalStateException - when all generations are disabled
    • isSpawnLevelsIncreaseInUltraSpace

      public boolean isSpawnLevelsIncreaseInUltraSpace()
      Returns:
      spawn levels increase in the ultraspace
    • isAlwaysAggressiveDimensions

      public boolean isAlwaysAggressiveDimensions(net.minecraft.world.level.Level world)
    • isHordeBattleDimensions

      public boolean isHordeBattleDimensions(net.minecraft.world.level.Level world)
    • isSpawningDisabledDimension

      public boolean isSpawningDisabledDimension(net.minecraft.world.level.Level world)
    • getPlayerTrackingSpawnerSpawnCollectionRate

      public int getPlayerTrackingSpawnerSpawnCollectionRate()
    • getAutoTagSpecs

      public Map<String,PokemonSpecification> getAutoTagSpecs()
    • removeIntervalTime

      public void removeIntervalTime(String tag)