diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-07-01 20:06:43 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-07-01 20:06:43 +0800 |
| commit | ef588c0ace2c668f61deb5b14b3299fd243f2ff6 (patch) | |
| tree | 3c7a8287f73365125d0b46391d302b7298a39750 /src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java | |
| parent | f6e7c6ac2d593e0592015232c7788386a4e1a1a6 (diff) | |
| download | RoughlyEnoughItems-ef588c0ace2c668f61deb5b14b3299fd243f2ff6.tar.gz RoughlyEnoughItems-ef588c0ace2c668f61deb5b14b3299fd243f2ff6.tar.bz2 RoughlyEnoughItems-ef588c0ace2c668f61deb5b14b3299fd243f2ff6.zip | |
Refractor HighlightableWidget
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java index c1c08ed98..369993735 100644 --- a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java @@ -13,7 +13,7 @@ import me.shedaniel.rei.api.RecipeDisplay; import me.shedaniel.rei.client.ScreenHelper; import me.shedaniel.rei.gui.config.RecipeScreenType; import me.shedaniel.rei.gui.widget.ButtonWidget; -import me.shedaniel.rei.gui.widget.HighlightableWidget; +import me.shedaniel.rei.gui.widget.WidgetWithBounds; import me.shedaniel.rei.gui.widget.Widget; import net.minecraft.client.MinecraftClient; import net.minecraft.client.gui.Element; @@ -93,7 +93,7 @@ public class PreRecipeViewingScreen extends Screen { return super.keyPressed(int_1, int_2, int_3); } - public class ScreenTypeSelection extends HighlightableWidget { + public class ScreenTypeSelection extends WidgetWithBounds { private Rectangle bounds; private int u, v; @@ -123,7 +123,7 @@ public class PreRecipeViewingScreen extends Screen { @Override public boolean mouseClicked(double double_1, double double_2, int int_1) { - if (isHighlighted(double_1, double_2)) { + if (containsMouse(double_1, double_2)) { minecraft.getSoundManager().play(PositionedSoundInstance.master(SoundEvents.UI_BUTTON_CLICK, 1.0F)); original = (v == 0); return true; |
