Class StickyWeb


public class StickyWeb extends EntryHazard
Lowers speed by one stage for Pokémon switching in.
  • Constructor Details

    • StickyWeb

      public StickyWeb()
      Initializes the status.
  • Method Details

    • 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.
    • 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.
    • 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.
    • 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.