Class Prayers

java.lang.Object
dev.twilite.game.facade.Prayers

public class Prayers extends Object
Prayerbook helpers backed by live prayer varps and prayerbook components.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Quick-prayer state and setup helpers.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    activate(Prayer... prayers)
    Activates the supplied prayers.
    static List<Prayer>
    Returns every currently active prayer.
    static boolean
    active(Prayer... prayers)
    Returns whether all supplied prayers are active.
    static boolean
    Returns whether all supplied prayers are active.
    static List<Prayer>
    all()
    Returns every modern prayer.
    static void
    deactivate(Prayer... prayers)
    Deactivates the supplied prayers.
    static void
    flick(Prayer... prayers)
    Deactivates active prayers, then activates the requested prayers in the same tick.
    static void
    Deactivates active prayers, then activates the requested prayers in the same tick.
    static Prayer
    Returns the active overhead prayer, or null when none is active.
    static int
    Returns current Prayer points as a percentage of the base level.
    static int
    Returns the current Prayer points.
    static void
    select(Prayer... prayers)
    Activates any supplied prayers that are not already active.
    static void
    Activates any supplied prayers that are not already active.
    static void
    toggle(boolean on, Prayer prayer)
    Toggles a prayer to the requested state.
    static int
    Returns the player's base Prayer level.
    static boolean
    unlocked(Prayer prayer)
    Returns whether the supplied prayer is unlocked for the local player.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Prayers

      public Prayers()
  • Method Details

    • all

      public static List<Prayer> all()
      Returns every modern prayer.
    • active

      public static List<Prayer> active()
      Returns every currently active prayer.
    • active

      public static boolean active(Collection<Prayer> prayers)
      Returns whether all supplied prayers are active.
    • active

      public static boolean active(Prayer... prayers)
      Returns whether all supplied prayers are active.
    • overhead

      public static Prayer overhead()
      Returns the active overhead prayer, or null when none is active.
    • unlocked

      public static boolean unlocked(Prayer prayer)
      Returns whether the supplied prayer is unlocked for the local player.
    • points

      public static int points()
      Returns the current Prayer points.
    • totalPoints

      public static int totalPoints()
      Returns the player's base Prayer level.
    • percent

      public static int percent()
      Returns current Prayer points as a percentage of the base level.
    • toggle

      public static void toggle(boolean on, Prayer prayer)
      Toggles a prayer to the requested state.
    • activate

      public static void activate(Prayer... prayers)
      Activates the supplied prayers.
    • deactivate

      public static void deactivate(Prayer... prayers)
      Deactivates the supplied prayers.
    • select

      public static void select(Collection<Prayer> prayers)
      Activates any supplied prayers that are not already active.
    • select

      public static void select(Prayer... prayers)
      Activates any supplied prayers that are not already active.
    • flick

      public static void flick(Collection<Prayer> prayers)
      Deactivates active prayers, then activates the requested prayers in the same tick.
    • flick

      public static void flick(Prayer... prayers)
      Deactivates active prayers, then activates the requested prayers in the same tick.