blob: 8dde8163c886d2f44c667f1f1236dc45be36edd4 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
package gregtech.api.interfaces;
import java.util.List;
import net.minecraft.item.ItemStack;
import gregtech.api.GregTech_API;
/**
* Implement this interface if your tileentity (or metatileentity) supports configuration circuits to resolve recipe
* conflicts.
*/
public interface IConfigurationCircuitSupport {
/**
*
* @return Integrated circuit slot index in the machine inventory
*/
int getCircuitSlot();
/**
* Return a list of possible configuration circuit this machine expects.
* <p>
* This list is unmodifiable. Its elements are not supposed to be modified in any way!
*/
default List<ItemStack> getConfigurationCircuits() {
return GregTech_API.getConfigurationCircuitList(100);
}
/**
*
* @return True if that machine supports built-in configuration circuit
*/
boolean allowSelectCircuit();
/**
*
* @return Circuit slot index in GUI container
*/
default int getCircuitGUISlot() {
return getCircuitSlot();
}
int getCircuitSlotX();
int getCircuitSlotY();
}
|