aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java16
1 files changed, 16 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..01cdff416 100644
--- a/src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java
+++ b/src/main/java/me/shedaniel/rei/api/ButtonAreaSupplier.java
@@ -1,11 +1,27 @@
+/*
+ * Roughly Enough Items by Danielshe.
+ * Licensed under the MIT License.
+ */
+
package me.shedaniel.rei.api;
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 "+";
}