Interface Contribution

All Superinterfaces:
Identified

@NonExtendable public interface Contribution extends Identified
A hook handler or service replacement an addon contributed. The player can turn it off in the Hooks window; one that throws is turned off for the session (and the call goes on to the next). Its Identified.id() is made from the addon's namespace, the target and the label, so the player's choice sticks across restarts.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the player left it on (saved).
    boolean
    Whether it threw and was turned off until the game restarts.
    What it does, as the addon put it ("Smooth turns").
    When it applies: for which callers, on which anti-cheat profile and server.
    void
    setEnabled(boolean enabled)
    Turns it on or off, as the Hooks window does; saved at once.
    What it's for: a Hook's or a Service's id.

    Methods inherited from interface Identified

    id
  • Method Details

    • target

      MyriadId target()
      What it's for: a Hook's or a Service's id.
    • label

      String label()
      What it does, as the addon put it ("Smooth turns").
    • match

      Match match()
      When it applies: for which callers, on which anti-cheat profile and server.
    • enabled

      boolean enabled()
      Whether the player left it on (saved).
    • setEnabled

      void setEnabled(boolean enabled)
      Turns it on or off, as the Hooks window does; saved at once. Hook chains and the replacement each service uses are worked out again, so a replacement is started or stopped right away.
    • failed

      boolean failed()
      Whether it threw and was turned off until the game restarts.