Class StickyWeb
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.EntryHazard
com.pixelmonmod.pixelmon.battles.status.StickyWeb
Lowers speed by one stage for Pokémon switching in.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.EntryHazard
ENTRY_HAZARDS, initialPlacer, numLayersFields inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
battleTurnGained, turnGained, typeFields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAffects a Pokémon when it switches in.protected StringGets the lang key for the message displayed when a hazard is triggered.intGets the weight per Pokémon that an AI will assign to the move.protected StringGets the lang key for the message displayed when a hazard is first laid.Gets a new instance of the entry hazard.booleanChecks if the Pokémon is unharmed by the entry hazard.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.EntryHazard
applyEffect, applyEffectOnSwitch, applyHazards, copy, getDamage, getInitialPlacer, getMultiLayerMessage, getNumLayers, isAirborne, isTeamStatus, weightEffectMethods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitchingMethods inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, canHitMultipleTargets, changeChance, checkChance, dealtDamage, dealtDamagePerHit, doesPersist, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance
-
Constructor Details
-
StickyWeb
public StickyWeb()Initializes the status.
-
-
Method Details
-
doEffect
Description copied from class:EntryHazardAffects a Pokémon when it switches in.- Overrides:
doEffectin classEntryHazard- Parameters:
pw- The Pokémon to affect.
-
isUnharmed
Description copied from class:EntryHazardChecks if the Pokémon is unharmed by the entry hazard.- Overrides:
isUnharmedin classEntryHazard- Parameters:
pw- The Pokémon to check.- Returns:
- Whether the Pokémon is unharmed by the entry hazard.
-
getNewInstance
Description copied from class:EntryHazardGets a new instance of the entry hazard.- Specified by:
getNewInstancein classEntryHazard- Returns:
- A new instance of the entry hazard.
-
getFirstLayerMessage
Description copied from class:EntryHazardGets the lang key for the message displayed when a hazard is first laid.- Specified by:
getFirstLayerMessagein classEntryHazard- Returns:
- The lang key for the message displayed when a hazard is first laid.
-
getAffectedMessage
Description copied from class:EntryHazardGets the lang key for the message displayed when a hazard is triggered.- Specified by:
getAffectedMessagein classEntryHazard- Returns:
- The lang key for the message displayed when a hazard is triggered.
-
getAIWeight
public int getAIWeight()Description copied from class:EntryHazardGets the weight per Pokémon that an AI will assign to the move.- Specified by:
getAIWeightin classEntryHazard- Returns:
- The weight per Pokémon that an AI will assign to the move.
-