From 6104964f60bac00a4ac1359bd244d361e50786bd Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 27 Aug 2020 19:36:00 +0800 Subject: Migrate from yarn to mojmap Signed-off-by: shedaniel --- .../src/main/java/me/shedaniel/rei/api/OverlayDecider.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/OverlayDecider.java') diff --git a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/OverlayDecider.java b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/OverlayDecider.java index 500d9f058..a4907147d 100644 --- a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/OverlayDecider.java +++ b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/api/OverlayDecider.java @@ -25,15 +25,15 @@ package me.shedaniel.rei.api; import me.shedaniel.math.Rectangle; import me.shedaniel.rei.gui.config.DisplayPanelLocation; -import net.minecraft.util.ActionResult; +import net.minecraft.world.InteractionResult; -import static net.minecraft.util.ActionResult.PASS; +import static net.minecraft.world.InteractionResult.PASS; public interface OverlayDecider { boolean isHandingScreen(Class screen); - default ActionResult shouldScreenBeOverlayed(Class screen) { - return ActionResult.PASS; + default InteractionResult shouldScreenBeOverlayed(Class screen) { + return InteractionResult.PASS; } /** @@ -63,7 +63,7 @@ public interface OverlayDecider { * @param mouseY mouse's y coordinates * @return whether mouse is inside the overlay */ - default ActionResult isInZone(double mouseX, double mouseY) { + default InteractionResult isInZone(double mouseX, double mouseY) { return PASS; } } -- cgit