blob: a1bbe2854a81aa202ffe0d89add0afb31480f2fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package dev.isxander.yacl.api;
import dev.isxander.yacl.impl.LabelOptionImpl;
import net.minecraft.text.Text;
/**
* A label option is an easier way of creating a label with a {@link dev.isxander.yacl.gui.controllers.LabelController}.
* This option is immutable and cannot be disabled. Tooltips are supported through
* {@link Text} styling.
*/
public interface LabelOption extends Option<Text> {
Text label();
/**
* Creates a new label option with the given label.
*/
static LabelOption create(Text label) {
return new LabelOptionImpl(label);
}
}
|