Class GeneralConfig
java.lang.Object
com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
com.pixelmonmod.pixelmon.api.config.GeneralConfig
- 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 TypeMethodDescriptionint
float
int
int
int
int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setHammerDurabilityLossMultiplier
(int hammerDurabilityLossMultiplier) boolean
usesGen8Features
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) Methods inherited from class com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
getNode, save
-
Constructor Details
-
GeneralConfig
public GeneralConfig()
-
-
Method Details
-
getHammerDurabilityLossMultiplier
public int getHammerDurabilityLossMultiplier() -
setHammerDurabilityLossMultiplier
public void setHammerDurabilityLossMultiplier(int hammerDurabilityLossMultiplier) -
isAllowPokemonNicknames
public boolean isAllowPokemonNicknames()- Returns:
- Whether Pokémon are allowed to be nicknamed.
-
isAllowPlanting
public boolean isAllowPlanting()- Returns:
- Whether players can plant Apricorns and berries.
-
isCloningMachineEnabled
public boolean isCloningMachineEnabled()- Returns:
- If the cloning machine is enabled
-
getLakeTrioMaxEnchants
public int getLakeTrioMaxEnchants()- Returns:
- The maximum number of times a Lake trio will enchant a ruby.
-
isUseSystemTimeForWorldTime
public boolean isUseSystemTimeForWorldTime()- Returns:
- Whether to sync Minecraft time with system time.
-
getTimeUpdateInterval
public int getTimeUpdateInterval()- Returns:
- The frequency that Minecraft time will be synced with system time.
-
getMaxLevel
public int getMaxLevel()- Returns:
- The maximum pokemonLevel that a Pokémon can be.
-
isAlwaysHaveMegaRing
public boolean isAlwaysHaveMegaRing()- Returns:
- Whether or not all players should be automatically given a mega ring.
-
isAlwaysHaveDynamaxBand
public boolean isAlwaysHaveDynamaxBand()- Returns:
- Whether or not all players should be automatically given a dynamax band.
-
getChanceToGetSpecialBidoof
public int getChanceToGetSpecialBidoof()- Returns:
- The chance catching a Bidoof with a Luxury Ball will produce a Special Bidoof.
-
getOldGenDimensions
- Returns:
- Which dimensions use Gen 7 features (eg. Mega Bosses). Any other dimension will use Gen 8 (eg. Max Raids).
-
getBothGenDimensions
- Returns:
- Which dimensions use both Gen 7 and Gen 8 features. Overrides oldGenDimensions and relaxedBattleGimmickRules.
-
getDynamaxSize
public float getDynamaxSize()- Returns:
- How much Dynamax raises Pokémon heights to.
-
isBerryJuiceCrafting
public boolean isBerryJuiceCrafting()- Returns:
- Whether berry juices can be crafted in the infuser.
-
isPokeGiftReusable
public boolean isPokeGiftReusable()- Returns:
- Whether Poké Gifts are reusable.
-
getElevatorSearchRange
public int getElevatorSearchRange()- Returns:
- The maximum distance between elevators pairing with each other.
-
usesGen8Features
public boolean usesGen8Features(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) -
isStarterOnJoin
public boolean isStarterOnJoin()- Returns:
- Whether a starter Pokémon is automatically given upon first joining a world.
-
getFallbackCaptureMethod
- Returns:
- The fallback capture method to use if no specified in the ball used.
-
isUseDiscordRichPresence
public boolean isUseDiscordRichPresence()- Returns:
- Whether Discord Rich Presence should be used or not.
-