ru.cwcode.commands.extra.builder.list.ListField Maven / Gradle / Ivy
package ru.cwcode.commands.extra.builder.list;
import net.kyori.adventure.text.Component;
import ru.cwcode.commands.api.Sender;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
public class ListField {
String name;
BiFunction text = (e, s) -> Component.empty();
BiFunction hover = null;
BiConsumer onClick = null;
BiFunction shouldShow = (e, s) -> true;
public void setName(String name) {
this.name = name;
}
public void setText(BiFunction text) {
this.text = text;
}
public void setHover(BiFunction hover) {
this.hover = hover;
}
public void setOnClick(BiConsumer onClick) {
this.onClick = onClick;
}
public void setShouldShow(BiFunction shouldShow) {
this.shouldShow = shouldShow;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy