From ad7f945d6f724d51ee843b334838fda84c6197f2 Mon Sep 17 00:00:00 2001 From: Danielshe Date: Sun, 3 Nov 2019 19:02:00 +0800 Subject: API Changes --- .../rei/gui/widget/DetailedButtonWidget.java | 48 ---------------------- 1 file changed, 48 deletions(-) delete mode 100644 src/main/java/me/shedaniel/rei/gui/widget/DetailedButtonWidget.java (limited to 'src/main/java/me/shedaniel/rei/gui/widget/DetailedButtonWidget.java') 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); - } - -} -- cgit