aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-08-14 11:08:27 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-08-14 11:08:27 +0800
commitd1108cd4617cc454481bcde2086b9b05cbd3541c (patch)
tree84cb47fbc6554710ac66bedddd593e4f69d318e4 /src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
parentb35486adde42d2a59912773846adff0d86c62ef2 (diff)
downloadRoughlyEnoughItems-d1108cd4617cc454481bcde2086b9b05cbd3541c.tar.gz
RoughlyEnoughItems-d1108cd4617cc454481bcde2086b9b05cbd3541c.tar.bz2
RoughlyEnoughItems-d1108cd4617cc454481bcde2086b9b05cbd3541c.zip
Cache handlers so it won't leak ram
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java b/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
index cfdb29282..3f2a3cd51 100644
--- a/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
+++ b/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java
@@ -19,7 +19,11 @@ public interface BaseBoundsHandler extends DisplayHelper.DisplayBoundsHandler<Sc
* @param isOnRightSide whether the user has set the overlay to the right
* @return the list of exclusion zones
*/
- List<Rectangle> getCurrentExclusionZones(Class<?> currentScreenClass, boolean isOnRightSide);
+ default List<Rectangle> getCurrentExclusionZones(Class<?> currentScreenClass, boolean isOnRightSide) {
+ return getCurrentExclusionZones(currentScreenClass, isOnRightSide, false);
+ }
+
+ List<Rectangle> getCurrentExclusionZones(Class<?> currentScreenClass, boolean isOnRightSide, boolean sort);
/**
* Register an exclusion zone