aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/utils/container/ContainerMatcher.java
blob: 159f399e30c9b7155185fc9ca6be4c6ae6a224f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package de.hysky.skyblocker.utils.container;

import net.minecraft.client.gui.screen.Screen;
import org.jetbrains.annotations.NotNull;

import java.util.function.Predicate;

public interface ContainerMatcher extends Predicate<Screen> {
    /**
     * Tests if the given screen should be handled by this matcher.
     * @return {@code true} if this matcher should apply to the given screen, {@code false} otherwise
     */
    @Override
    boolean test(@NotNull Screen screen);

    /**
     * @return {@code true} if this matcher is enabled, {@code false} otherwise
     */
    boolean isEnabled();
}