diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-06-18 20:07:38 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-06-18 20:07:38 +0800 |
| commit | 609c2238e12ad9835c449cd9f9da842ca747d5dc (patch) | |
| tree | 87d52715819b31543afe88137cd196ce6d7e9cad /src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java | |
| parent | 4f3a2eae017efe3ff6896f5c01d58c7b1a27d814 (diff) | |
| download | RoughlyEnoughItems-609c2238e12ad9835c449cd9f9da842ca747d5dc.tar.gz RoughlyEnoughItems-609c2238e12ad9835c449cd9f9da842ca747d5dc.tar.bz2 RoughlyEnoughItems-609c2238e12ad9835c449cd9f9da842ca747d5dc.zip | |
nah let's break everyone's plugins
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java b/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java index 7d311609f..cfdb29282 100644 --- a/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java +++ b/src/main/java/me/shedaniel/rei/api/BaseBoundsHandler.java @@ -9,6 +9,7 @@ import net.minecraft.client.gui.screen.Screen; import java.awt.*; import java.util.List; +import java.util.function.Function; public interface BaseBoundsHandler extends DisplayHelper.DisplayBoundsHandler<Screen> { /** @@ -24,17 +25,8 @@ public interface BaseBoundsHandler extends DisplayHelper.DisplayBoundsHandler<Sc * Register an exclusion zone * * @param screenClass the screen - * @param supplier the exclusion zone supplier + * @param supplier the exclusion zone supplier, isOnRightSide -> the list of exclusion zones */ - void registerExclusionZones(Class<?> screenClass, ExclusionZoneSupplier supplier); + void registerExclusionZones(Class<?> screenClass, Function<Boolean, List<Rectangle>> 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); - } } |
