aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-05-12 01:32:04 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-05-12 01:32:04 +0800
commit357388d49c306a288f2c56cb6f25589237f7284e (patch)
treedc6e3a35c247733231a62b1702adbc6f5a4b165c /src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java
parentaa916b6d14d62e062fec49c378e0f62b254c83ae (diff)
downloadRoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.tar.gz
RoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.tar.bz2
RoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.zip
Small documentations
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java b/src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java
index 07125643c..f7bd8517e 100644
--- a/src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java
+++ b/src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java
@@ -4,8 +4,19 @@ import java.awt.*;
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 "+";
}