public class ImmutableAttack extends java.lang.Object implements ITranslatable
Modifier and Type | Field and Description |
---|---|
java.util.List<AttackAnimation> |
animations |
java.util.List<EffectBase> |
effects |
java.util.List<ZMove> |
z |
Constructor and Description |
---|
ImmutableAttack(Element attackType,
int basePower,
AttackCategory attackCategory)
Initializes a temporary base attack for damage calculation only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getAccuracy()
The attack's base accuracy.
|
AttackCategory |
getAttackCategory()
The attack's category.
|
int |
getAttackIndex()
Deprecated.
|
java.lang.String |
getAttackName()
Gets the attack's English name.
|
Element |
getAttackType()
The attack's type.
|
int |
getBasePower()
The attack's base power.
|
java.lang.String |
getDescriptionKey() |
MoveFlags |
getFlags()
Details about the the attack.
|
boolean |
getIgnoresAbilities()
Gets whether the attack ignores ignorable abilities.
|
java.lang.String |
getJson() |
boolean |
getMakesContact()
Gets whether the attack makes contact.
|
int |
getPPBase()
The attack's maximum PP without any boosts.
|
int |
getPPMax()
The attack's maximum PP with PP Ups.
|
int |
getPriority(PixelmonWrapper pixelmon)
Gets the base priority of the attack.
|
net.minecraft.util.ResourceLocation |
getResourceLocation() |
TargetingInfo |
getTargetingInfo()
Details about the the attack's possible targets.
|
java.lang.String |
getTranslationKey()
Gets the attack's unlocalized key.
|
ZMove |
getZMove(PixelmonClientData pig,
boolean bypassItemRequirement) |
ZMove |
getZMove(Pokemon pokemon,
boolean bypassItemRequirement) |
<T extends EffectBase> |
hasEffect(java.lang.Class<T> clazz)
Gets whether the attack has a specific type of EffectBase
|
int |
hashCode() |
boolean |
hasSecondaryEffect()
Checks if the attack has a secondary effect.
|
boolean |
hasTag(java.lang.String... tags) |
boolean |
hasZMove(Pokemon pokemon) |
boolean |
is(java.lang.String... tags) |
boolean |
isAttack(ImmutableAttack attack) |
boolean |
isAttack(java.util.Optional<ImmutableAttack> attack)
Determines whether the attack's name matches the given name.
|
Attack |
ofMutable() |
void |
setJson(java.lang.String json) |
void |
setMakesContact(boolean makesContact)
Sets whether the attack makes contact.
|
void |
setResourceLocation(net.minecraft.util.ResourceLocation resourceLocation) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLocalizedName, getTranslatedName
public java.util.List<EffectBase> effects
public java.util.List<AttackAnimation> animations
public java.util.List<ZMove> z
public ImmutableAttack(Element attackType, int basePower, AttackCategory attackCategory)
attackType
- The attack's type.basePower
- The attack's base power.attackCategory
- The attack's attack category.public Attack ofMutable()
@Deprecated public int getAttackIndex()
public java.lang.String getAttackName()
public Element getAttackType()
public AttackCategory getAttackCategory()
public int getBasePower()
public int getPPBase()
public int getPPMax()
public int getAccuracy()
public boolean getMakesContact()
public void setMakesContact(boolean makesContact)
public boolean getIgnoresAbilities()
public TargetingInfo getTargetingInfo()
public MoveFlags getFlags()
public boolean isAttack(java.util.Optional<ImmutableAttack> attack)
attack
- The attack to check.public boolean isAttack(ImmutableAttack attack)
public int getPriority(PixelmonWrapper pixelmon)
public boolean hasSecondaryEffect()
public <T extends EffectBase> boolean hasEffect(java.lang.Class<T> clazz)
clazz
- - The class needed in the effect listpublic ZMove getZMove(PixelmonClientData pig, boolean bypassItemRequirement)
public boolean hasZMove(Pokemon pokemon)
public boolean hasTag(java.lang.String... tags)
public boolean is(java.lang.String... tags)
public java.lang.String getJson()
public void setJson(java.lang.String json)
public net.minecraft.util.ResourceLocation getResourceLocation()
public void setResourceLocation(net.minecraft.util.ResourceLocation resourceLocation)
public java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable
public java.lang.String getDescriptionKey()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object