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

cn.nukkit.dialog.handler.FormDialogHandler Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.dialog.handler;

import cn.nukkit.Player;
import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.dialog.response.FormResponseDialog;

import java.util.function.Consumer;

@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public interface FormDialogHandler {

    static FormDialogHandler withoutPlayer(Consumer responseConsumer) {
        return (player, response) -> responseConsumer.accept(response);
    }

    void handle(Player player, FormResponseDialog response);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy