Interface CycleConsumer<E extends CycleEnum>

Type Parameters:
E - The type of the enum
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 interface CycleConsumer<E extends CycleEnum>
Used by the CycleGUIButton
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(ClickData clickData, E value)
    Executed when the button is cycled
  • Method Details

    • apply

      void apply(ClickData clickData, E value)
      Executed when the button is cycled
      Parameters:
      clickData - The clickData of the event
      value - The new enum value