aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-02-26 00:35:20 +0800
committershedaniel <daniel@shedaniel.me>2020-02-26 00:35:20 +0800
commit69a855f33483c3a5273f6f337c95fb51aad5d2b4 (patch)
tree8cec3c7967d95ec386bcf4aabe59b323b23f1103 /src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
parent6a943e21ed3c2610ade20c3ba0646da87db65501 (diff)
downloadRoughlyEnoughItems-69a855f33483c3a5273f6f337c95fb51aad5d2b4.tar.gz
RoughlyEnoughItems-69a855f33483c3a5273f6f337c95fb51aad5d2b4.tar.bz2
RoughlyEnoughItems-69a855f33483c3a5273f6f337c95fb51aad5d2b4.zip
improved notice filtering
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
index 99aa3dd6a..58fe953e4 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/EntryWidget.java
@@ -23,6 +23,7 @@ import net.minecraft.client.sound.PositionedSoundInstance;
import net.minecraft.sound.SoundEvents;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.MathHelper;
+import org.jetbrains.annotations.ApiStatus;
import java.util.*;
@@ -31,6 +32,8 @@ public class EntryWidget extends WidgetWithBounds {
protected static final Identifier RECIPE_GUI = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer.png");
protected static final Identifier RECIPE_GUI_DARK = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer_dark.png");
+ @ApiStatus.Internal
+ private byte noticeMark = 0;
protected boolean highlight = true;
protected boolean tooltips = true;
protected boolean background = true;
@@ -56,6 +59,26 @@ public class EntryWidget extends WidgetWithBounds {
return new EntryWidget(point);
}
+ public EntryWidget unmarkInputOrOutput() {
+ noticeMark = 0;
+ return this;
+ }
+
+ public EntryWidget markIsInput() {
+ noticeMark = 1;
+ return this;
+ }
+
+ public EntryWidget markIsOutput() {
+ noticeMark = 2;
+ return this;
+ }
+
+ @ApiStatus.Internal
+ public byte getNoticeMark() {
+ return noticeMark;
+ }
+
public EntryWidget disableInteractions() {
return interactable(false);
}