blob: 4f6120e2aaab2ec71d293ce1842605437c30e283 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* Copyright (c) 2018, 2019, 2020 shedaniel
* Licensed under the MIT License (the "License").
*/
package me.shedaniel.rei.api;
import net.minecraft.util.ActionResult;
public interface OverlayDecider {
boolean isHandingScreen(Class<?> screen);
default ActionResult shouldScreenBeOverlayed(Class<?> screen) {
return ActionResult.PASS;
}
/**
* Gets the priority of the handler, the higher it is, the earlier it is called.
*
* @return the priority in float
*/
default float getPriority() {
return 0f;
}
}
|