Class ToxicSpikes


public class ToxicSpikes extends EntryHazard
Poisons Pokémon upon switching in.
  • Constructor Details

    • ToxicSpikes

      public ToxicSpikes()
      Initializes Toxic Spikes with one layer.
  • Method Details

    • isUnharmed

      public boolean isUnharmed(PixelmonWrapper pw)
      Description copied from class: EntryHazard
      Checks if the Pokémon is unharmed by the entry hazard.
      Overrides:
      isUnharmed in class EntryHazard
      Parameters:
      pw - The Pokémon to check.
      Returns:
      Whether the Pokémon is unharmed by the entry hazard.
    • applyEffectOnSwitch

      public void applyEffectOnSwitch(PixelmonWrapper pw)
      Description copied from class: StatusBase
      Triggers when the statused Pokémon switches in.
      Overrides:
      applyEffectOnSwitch in class EntryHazard
      Parameters:
      pw - The statused Pokémon.
    • doEffect

      protected void doEffect(PixelmonWrapper pw)
      Description copied from class: EntryHazard
      Affects a Pokémon when it switches in.
      Overrides:
      doEffect in class EntryHazard
      Parameters:
      pw - The Pokémon to affect.
    • getNewInstance

      public EntryHazard getNewInstance()
      Description copied from class: EntryHazard
      Gets a new instance of the entry hazard.
      Specified by:
      getNewInstance in class EntryHazard
      Returns:
      A new instance of the entry hazard.
    • getFirstLayerMessage

      protected String getFirstLayerMessage()
      Description copied from class: EntryHazard
      Gets the lang key for the message displayed when a hazard is first laid.
      Specified by:
      getFirstLayerMessage in class EntryHazard
      Returns:
      The lang key for the message displayed when a hazard is first laid.
    • getMultiLayerMessage

      protected String getMultiLayerMessage()
      Description copied from class: EntryHazard
      Gets the lang key for the message displayed when a hazard layer is added to an existing one.
      Overrides:
      getMultiLayerMessage in class EntryHazard
      Returns:
      The lang key for the message displayed when a hazard layer is added to an existing one.
    • getAffectedMessage

      protected String getAffectedMessage()
      Description copied from class: EntryHazard
      Gets the lang key for the message displayed when a hazard is triggered.
      Specified by:
      getAffectedMessage in class EntryHazard
      Returns:
      The lang key for the message displayed when a hazard is triggered.
    • getAIWeight

      public int getAIWeight()
      Description copied from class: EntryHazard
      Gets the weight per Pokémon that an AI will assign to the move.
      Specified by:
      getAIWeight in class EntryHazard
      Returns:
      The weight per Pokémon that an AI will assign to the move.