All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.placeblock.betterinventories.gui.impl.textinput.FinishConsumer Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package de.placeblock.betterinventories.gui.impl.textinput;

/**
 * Used by the TextInputGUI and is called when a player clicks on the submit-item
 */
@FunctionalInterface
public interface FinishConsumer {
    /**
     * The method called when the player clicks on the submit-item
     * @param finalText The text the player entered
     * @param abort Whether the player aborted, e.g. by closing the Inventory
     * @return true if the inventory should get closed
     */
    boolean accept(String finalText, boolean abort);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy