blob: aa9a810242d85128265936a5a384a1d71e8bc100 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* Copyright (c) 2018, 2019, 2020 shedaniel
* Licensed under the MIT License (the "License").
*/
package me.shedaniel.rei.api;
import me.shedaniel.math.api.Rectangle;
/**
* The supplier for the + button area.
*/
public interface ButtonAreaSupplier {
/**
* Declares the button bounds
*
* @param bounds the bounds of the recipe display
* @return the bounds of the button
*/
Rectangle get(Rectangle bounds);
/**
* Declares the button text
*
* @return the text of the button
*/
default String getButtonText() {
return "+";
}
}
|