Interface GuiStateProvider

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 GuiStateProvider
Supplies dynamic pseudo-class or custom-state values for a retained component.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isActive(GuiComponent<?> component, GuiStyleState state)
    Returns whether the query is currently active.
  • Method Details

    • isActive

      boolean isActive(GuiComponent<?> component, GuiStyleState state)
      Returns whether the query is currently active.
      Parameters:
      component - component being matched
      state - standard or custom state query
      Returns:
      active flag