Interface FinishConsumer

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 FinishConsumer
Used by the TextInputGUI and is called when a player clicks on the submit-item
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(String finalText, boolean abort)
    The method called when the player clicks on the submit-item
  • Method Details

    • accept

      boolean accept(String finalText, boolean abort)
      The method called when the player clicks on the submit-item
      Parameters:
      finalText - The text the player entered
      abort - Whether the player aborted, e.g. by closing the Inventory
      Returns:
      true if the inventory should get closed