Enum Class StatusType
- All Implemented Interfaces:
ITranslatable
,Serializable
,Comparable<StatusType>
,Constable
Enum representations of all statuses.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getColor
(StatusType statusType) Returns the color of the type relevant to this type of status.static StatusType
getEffect
(int integer) Gets a status from its enum index.static StatusPersist
getEffectInstance
(int integer) Gets a non-volatile status from its enum index.static StatusType
getStatusEffect
(String string) Gets a status enum from a string.static float[]
getTexturePos
(StatusType type) Determines the position of the status indicator's texture.boolean
Determines whether the status is a non-volatile status.static boolean
isPrimaryStatus
(StatusType status) Determines whether the status is a non-volatile status.boolean
isStatus
(StatusType... statuses) Checks if the status is one of a list of statuses.static boolean
isStatusEffect
(String string) Determines if the string has a status type associated with it.static StatusType
Returns the enum constant of this class with the specified name.static StatusType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Enum Constant Details
-
Burn
-
Confusion
-
Cursed
-
Infatuated
-
Flee
-
Flinch
-
Flying
-
Freeze
-
Leech
-
LightScreen
-
Mist
-
Paralysis
-
Poison
-
PoisonBadly
-
Protect
-
SafeGuard
-
Sleep
-
SmackedDown
-
Substitute
-
Sunny
-
Wait
-
TrickRoom
-
Perish
-
Yawn
-
Disable
-
Immobilize
-
Recharge
-
AquaRing
-
UnderGround
-
Transformed
-
MeanLook
-
NoRetreat
-
FutureSight
-
MagnetRise
-
Spikes
-
ToxicSpikes
-
StealthRock
-
Steelsurge
-
PartialTrap
-
GMaxRepeatDamage
-
Reflect
-
Submerged
-
Raging
-
Telekinesis
-
Tailwind
-
DestinyBond
-
Taunt
-
TempMoveset
-
HealingWish
-
Roosting
-
Wish
-
Encore
-
Focus
-
MagicCoat
-
Ingrain
-
Stockpile
-
Snatch
-
Minimize
-
Gravity
-
Hail
-
Rainy
-
Sandstorm
-
Torment
-
Foresight
-
GastroAcid
-
GuardSplit
-
PowerSplit
-
WonderRoom
-
LockOn
-
GlaiveRush
-
Endure
-
WideGuard
-
Charge
-
Nightmare
-
MeFirst
-
PowerTrick
-
Autotomize
-
DefenseCurl
-
SkyDropping
-
SkyDropped
-
FollowMe
-
Imprison
-
HealBlock
-
MudSport
-
WaterSport
-
FirePledge
-
GrassPledge
-
WaterPledge
-
HelpingHand
-
QuickGuard
-
Embargo
-
Grudge
-
LuckyChant
-
MagicRoom
-
LunarDance
-
Vanish
-
MultiTurn
-
Bide
-
Uproar
-
EchoedVoice
-
FuryCutter
-
DarkAura
-
FairyAura
-
CraftyShield
-
None
-
ElectricTerrain
-
Electrify
-
FairyLock
-
GrassyTerrain
-
IonDeluge
-
KingsShield
-
BanefulBunker
-
MatBlock
-
MistyTerrain
-
Powder
-
SpikyShield
-
StickyWeb
-
PsychicTerrain
-
MysteriousAirCurrent
-
AuroraVeil
-
BeakBlast
-
SpeedSwap
-
TarShot
-
ShellTrap
-
CorrosiveGas
-
ThroatChop
-
MaxGuard
-
Obstruct
-
LaserFocus
-
Frostbite
-
Drowsy
-
Splinters
-
Obscured
-
LunarBlessing
-
PowerShift
-
Fixated
-
SpringtideStorm
-
SaltCure
-
BerryEaten
-
Commanded
-
InMouth
-
ParadoxBoost
-
SilkTrap
-
StoredBoosts
-
StoredBoostsTargeted
-
Overlord
-
Snow
-
OfRuinTracker
-
MoveOrderModifier
-
InPursuit
-
SyrupBomb
-
BurningBulwark
-
ZPowerHeal
-
ChiStrike
-
Pumped
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isStatus
Checks if the status is one of a list of statuses.- Parameters:
statuses
- The list of statuses to compare this status against.- Returns:
- Whether the status is one of a list of statuses.
-
getStatusEffect
Gets a status enum from a string.- Parameters:
string
- The string to match to an enum.- Returns:
- The found status enum, or null if it is not found.
-
isStatusEffect
Determines if the string has a status type associated with it.- Parameters:
string
- The string to match to an enum.- Returns:
- Whether the string has a status type associated with it.
-
getEffect
Gets a status from its enum index.- Parameters:
integer
- The index of the enum.- Returns:
- The status associated with the index, or null if the index is out of bounds.
-
getEffectInstance
Gets a non-volatile status from its enum index.- Parameters:
integer
- The index of the enum.- Returns:
- The non-volatile status associated with the index, or null if the index doesn't map to one.
-
isPrimaryStatus
Determines whether the status is a non-volatile status.- Parameters:
status
- The status to check.- Returns:
- Whether the status is a non-volatile status.
-
isPrimaryStatus
public boolean isPrimaryStatus()Determines whether the status is a non-volatile status.- Returns:
- Whether the status is a non-volatile status.
-
getTexturePos
Determines the position of the status indicator's texture.- Parameters:
type
- The status to find a position for.- Returns:
- The position of the status, or {-1, -1} if the status is volatile.
-
getTranslationKey
- Specified by:
getTranslationKey
in interfaceITranslatable
-
getColor
Returns the color of the type relevant to this type of status.- Returns:
- The color of the status condition's image.
-