Interface Upgrade.Reactor

Enclosing interface:
Upgrade
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Upgrade.Reactor
Helper interface for responding to level changes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Upgrade.Reactor
    Helper reactor for simply pushing a Player.updateCommands() to all online members when level changes to or from level 0.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onChange(Faction faction, int oldLevel, int newLevel)
     
  • Field Details

    • UPDATE_COMMANDS

      static final Upgrade.Reactor UPDATE_COMMANDS
      Helper reactor for simply pushing a Player.updateCommands() to all online members when level changes to or from level 0.
  • Method Details

    • onChange

      void onChange(Faction faction, int oldLevel, int newLevel)