aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-05-12 18:10:15 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-05-12 18:10:15 +0800
commita98d9191f1a97925a8a3e2e23c0a07867540a93a (patch)
tree8aac9df58b40052b6b19c0c3ac7da66076dc5b1c /src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
parent45ed37cc8d0088b57cd2605482f471e69e5885f4 (diff)
downloadRoughlyEnoughItems-a98d9191f1a97925a8a3e2e23c0a07867540a93a.tar.gz
RoughlyEnoughItems-a98d9191f1a97925a8a3e2e23c0a07867540a93a.tar.bz2
RoughlyEnoughItems-a98d9191f1a97925a8a3e2e23c0a07867540a93a.zip
Out of beta: Build 110
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java b/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
index f363dccac..3aaf1f482 100644
--- a/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
+++ b/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
@@ -11,11 +11,30 @@ import java.awt.*;
import java.util.List;
public interface BaseBoundsHandler extends DisplayHelper.DisplayBoundsHandler<Screen> {
+ /**
+ * Gets the exclusion zones by the screen class
+ *
+ * @param currentScreenClass the current screen class
+ * @param isOnRightSide whether the user has set the overlay to the right
+ * @return the list of exclusion zones
+ */
List<Rectangle> getCurrentExclusionZones(Class<? extends Screen> currentScreenClass, boolean isOnRightSide);
+ /**
+ * Register an exclusion zone
+ *
+ * @param screenClass the screen
+ * @param supplier the exclusion zone supplier
+ */
void registerExclusionZones(Class<? extends Screen> screenClass, ExclusionZoneSupplier supplier);
public static interface ExclusionZoneSupplier {
+ /**
+ * Gets the current exclusion zones
+ *
+ * @param isOnRightSide whether the user has set the overlay to the right
+ * @return the list of exclusion zones
+ */
List<Rectangle> apply(boolean isOnRightSide);
}
}