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/plugin/DefaultPotionEffectExclusionZones.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/plugin/DefaultPotionEffectExclusionZones.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/DefaultPotionEffectExclusionZones.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/DefaultPotionEffectExclusionZones.java b/src/main/java/me/shedaniel/rei/plugin/DefaultPotionEffectExclusionZones.java index 29b150e72..3ef514ea3 100644 --- a/src/main/java/me/shedaniel/rei/plugin/DefaultPotionEffectExclusionZones.java +++ b/src/main/java/me/shedaniel/rei/plugin/DefaultPotionEffectExclusionZones.java @@ -6,7 +6,6 @@ package me.shedaniel.rei.plugin; import com.google.common.collect.Ordering; -import me.shedaniel.rei.api.BaseBoundsHandler; import me.shedaniel.rei.client.ScreenHelper; import me.shedaniel.rei.listeners.AbstractInventoryScreenHooks; import me.shedaniel.rei.listeners.ContainerScreenHooks; @@ -19,10 +18,11 @@ import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; +import java.util.function.Function; -public class DefaultPotionEffectExclusionZones implements BaseBoundsHandler.ExclusionZoneSupplier { +public class DefaultPotionEffectExclusionZones implements Function<Boolean, List<Rectangle>> { @Override - public List<Rectangle> apply(boolean isOnRightSide) { + public List<Rectangle> apply(Boolean isOnRightSide) { if (isOnRightSide || !(ScreenHelper.getLastContainerScreen() instanceof AbstractInventoryScreen) || !((AbstractInventoryScreenHooks) ScreenHelper.getLastContainerScreen()).rei_doesOffsetGuiForEffects()) return Collections.emptyList(); Collection<StatusEffectInstance> activePotionEffects = MinecraftClient.getInstance().player.getStatusEffects(); |
