aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/WidgetWithBounds.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/WidgetWithBounds.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/WidgetWithBounds.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/WidgetWithBounds.java b/src/main/java/me/shedaniel/rei/gui/widget/WidgetWithBounds.java
index c1ed9fbbd..bf674ea71 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/WidgetWithBounds.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/WidgetWithBounds.java
@@ -5,11 +5,12 @@
package me.shedaniel.rei.gui.widget;
-import java.awt.*;
+import me.shedaniel.math.api.Point;
+import me.shedaniel.math.api.Rectangle;
public abstract class WidgetWithBounds extends Widget {
- abstract public Shape getBounds();
+ abstract public Rectangle getBounds();
public final boolean containsMouse(int mouseX, int mouseY) {
return containsMouse((double) mouseX, (double) mouseY);