aboutsummaryrefslogtreecommitdiff
path: root/api/src
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2024-09-17 13:46:46 +0800
committershedaniel <daniel@shedaniel.me>2024-09-17 13:46:46 +0800
commitad4fd43bc27a62f18d7c77ca98478501f649d640 (patch)
treeaf030aca1ea2dddc4e726fee2bc43a8ff3e809c4 /api/src
parentbfe58652e9825aeaea9262e07a1d4ce095613d94 (diff)
downloadRoughlyEnoughItems-ad4fd43bc27a62f18d7c77ca98478501f649d640.tar.gz
RoughlyEnoughItems-ad4fd43bc27a62f18d7c77ca98478501f649d640.tar.bz2
RoughlyEnoughItems-ad4fd43bc27a62f18d7c77ca98478501f649d640.zip
New Slot.withEntriesListener
Diffstat (limited to 'api/src')
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Slot.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Slot.java b/api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Slot.java
index bec1b9823..516af6f25 100644
--- a/api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Slot.java
+++ b/api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Slot.java
@@ -26,10 +26,12 @@ package me.shedaniel.rei.api.client.gui.widgets;
import me.shedaniel.math.Point;
import me.shedaniel.math.Rectangle;
import me.shedaniel.rei.api.common.entry.EntryStack;
+import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.List;
+import java.util.function.Consumer;
public abstract class Slot extends WidgetWithBounds {
public static final byte UN_MARKED = 0;
@@ -134,6 +136,10 @@ public abstract class Slot extends WidgetWithBounds {
public abstract Slot entries(Collection<? extends EntryStack<?>> stacks);
+ @ApiStatus.Experimental
+ @ApiStatus.Internal
+ public abstract Slot withEntriesListener(Consumer<Slot> listener);
+
public abstract EntryStack<?> getCurrentEntry();
public abstract List<EntryStack<?>> getEntries();