Class NoTerrain
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.GlobalStatusBase
com.pixelmonmod.pixelmon.battles.status.Terrain
com.pixelmonmod.pixelmon.battles.status.NoTerrain
Null reference pattern for terrains.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.Terrain
langEnd, langStart, turnsToGo
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
battleTurnGained, turnGained, type
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
countBenefits
(PixelmonWrapper user, PixelmonWrapper target) Counts the number of ways that the target Pokémon benefits from the terrain.Gets a new instance of the subclass.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.Terrain
affectsPokemon, applyEffect, applyRepeatedEffect, applyRepeatedEffect, getRemainingTurns, setTurns, toString, weightEffect
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.GlobalStatusBase
applyEffectAfterStatus, ignoreWeather, isTerrain, isWeather
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, isTeamStatus, 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, stopsSwitching
Methods 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
-
NoTerrain
public NoTerrain()Initializes the status.
-
-
Method Details
-
getNewInstance
Description copied from class:Terrain
Gets a new instance of the subclass.- Specified by:
getNewInstance
in classTerrain
- Returns:
- A new instance of the subclass.
-
getTerrainType
- Specified by:
getTerrainType
in classTerrain
-
getTypingForTerrain
- Specified by:
getTypingForTerrain
in classTerrain
-
countBenefits
Description copied from class:Terrain
Counts the number of ways that the target Pokémon benefits from the terrain.- Specified by:
countBenefits
in classTerrain
- Parameters:
user
- The Pokémon using the terrain move.target
- The Pokémon to count benefits for.- Returns:
- The number of ways that the target Pokémon benefits from the terrain.
-