mechanics.statuses.items
Class HoldItem
java.lang.Object
mechanics.statuses.StatusEffect
mechanics.statuses.abilities.IntrinsicAbility
mechanics.statuses.items.HoldItem
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable
- Direct Known Subclasses:
- ChoiceBandItem
public class HoldItem
- extends IntrinsicAbility
This class implements an item that can be held by a pokemon during battle.
These type of classes basically provide the same functionality as intrinsic
abilities, so the class inherits from IntrinsicAbility, even though the
semantic value of this is questionable.
|
Constructor Summary |
HoldItem(boolean register,
java.lang.String name)
|
HoldItem(java.lang.String name)
Creates a new instance of HoldItem |
HoldItem(java.lang.String name,
java.lang.String[] pokemon)
Initialise a HoldItem that can be used only by certain named pokemon. |
| Methods inherited from class mechanics.statuses.abilities.IntrinsicAbility |
apply, compareTo, equals, getDescription, getInstance, getName, getTier, immobilises, isEffectTransferrable, isPhysical, isSwappable, switchOut, tick, unapply |
| Methods inherited from class mechanics.statuses.StatusEffect |
activate, apply, beginTick, canSwitch, canSwitch, clone, deactivate, deactivates, disable, executeTurn, getEffectiveness, getEnemyTransformedEffectiveness, getEnemyTransformedMove, getInducer, getLock, getMove, getTierCount, getTransformedEffectiveness, getTransformedMove, hitsThroughSubstitute, informDamaged, informDuplicateEffect, isActive, isEffectivenessTransformer, isExclusiveWith, isListener, isMoveTransformer, isPassable, isRemovable, isSingleton, setInducer, switchIn, vetoesMove |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HoldItem
public HoldItem(java.lang.String name,
java.lang.String[] pokemon)
- Initialise a HoldItem that can be used only by certain named pokemon.
HoldItem
public HoldItem(boolean register,
java.lang.String name)
HoldItem
public HoldItem(java.lang.String name)
- Creates a new instance of HoldItem
registerAbility
protected void registerAbility()
- Description copied from class:
IntrinsicAbility
- Register an intrinsic ability.
- Overrides:
registerAbility in class IntrinsicAbility
getDefaultData
public static HoldItemData getDefaultData()
- Return the default item data.