aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/DetailedButtonWidget.java
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-11-03 19:02:00 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-11-03 19:02:00 +0800
commitad7f945d6f724d51ee843b334838fda84c6197f2 (patch)
treeb67cd5a1b95826435ef54813e4221ff3fda39212 /src/main/java/me/shedaniel/rei/gui/widget/DetailedButtonWidget.java
parent9f5a9eae9a7863412cc5eb433bf15e5ee71da616 (diff)
downloadRoughlyEnoughItems-ad7f945d6f724d51ee843b334838fda84c6197f2.tar.gz
RoughlyEnoughItems-ad7f945d6f724d51ee843b334838fda84c6197f2.tar.bz2
RoughlyEnoughItems-ad7f945d6f724d51ee843b334838fda84c6197f2.zip
API Changes
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/DetailedButtonWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/DetailedButtonWidget.java48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/DetailedButtonWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/DetailedButtonWidget.java
deleted file mode 100644
index 427a2703a..000000000
--- a/src/main/java/me/shedaniel/rei/gui/widget/DetailedButtonWidget.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Roughly Enough Items by Danielshe.
- * Licensed under the MIT License.
- */
-
-package me.shedaniel.rei.gui.widget;
-
-import me.shedaniel.math.api.Rectangle;
-import me.shedaniel.rei.api.annotations.ToBeRemoved;
-import net.minecraft.text.Text;
-
-@ToBeRemoved
-@Deprecated
-public class DetailedButtonWidget extends ButtonWidget {
-
- private DetailedButtonWidget.PressAction pressAction;
-
- public DetailedButtonWidget(Rectangle rectangle, Text text, PressAction pressAction) {
- super(rectangle, text);
- this.pressAction = pressAction;
- }
-
- public DetailedButtonWidget(Rectangle rectangle, String text, PressAction pressAction) {
- super(rectangle, text);
- this.pressAction = pressAction;
- }
-
- public DetailedButtonWidget(int x, int y, int width, int height, String text, PressAction pressAction) {
- super(x, y, width, height, text);
- this.pressAction = pressAction;
- }
-
- public DetailedButtonWidget(int x, int y, int width, int height, Text text, PressAction pressAction) {
- super(x, y, width, height, text);
- this.pressAction = pressAction;
- }
-
- @Override
- public void onPressed() {
- if (pressAction != null)
- pressAction.onPress(this);
- }
-
- public interface PressAction {
- void onPress(ButtonWidget var1);
- }
-
-}