Interface AccessMenuFunction


public interface AccessMenuFunction
A function triggerable from the Access Menu or a keybind.
Since:
1.12.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Weather this function is enabled.
    void
    Executed when this function is triggered.
  • Method Details

    • execute

      void execute()
      Executed when this function is triggered.
      Since:
      1.12.0
      Implementation Requirements:
      enabled() is always checked before calling this.
    • enabled

      @Contract(pure=true) default boolean enabled()
      Weather this function is enabled.
      Returns:
      true to enable, false to disable.
      Since:
      1.12.0