blob: b8291c984398ddccba232bdcfc09a4c6bde7be91 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
package gregtech.api.logic.interfaces;
import javax.annotation.Nonnull;
import gregtech.api.enums.VoidingMode;
import gregtech.api.interfaces.tileentity.IMachineProgress;
import gregtech.api.interfaces.tileentity.IVoidable;
import gregtech.api.logic.MuTEProcessingLogic;
public interface ProcessingLogicHost<P extends MuTEProcessingLogic<P>>
extends IVoidable, ItemInventoryLogicHost, FluidInventoryLogicHost, IMachineProgress {
/**
* Get the processing logic for the current machine
*/
@Nonnull
P getProcessingLogic();
boolean isInputSeparated();
void setInputSeparation(Boolean inputSeparation);
default boolean supportsInputSeparation() {
return true;
}
default boolean getDefaultInputSeparationMode() {
return false;
}
boolean isRecipeLockingEnabled();
void setRecipeLocking(Boolean recipeLocked);
default boolean supportsSingleRecipeLocking() {
return true;
}
default boolean getDefaultRecipeLockingMode() {
return false;
}
default boolean supportsBatchMode() {
return true;
}
void setBatchMode(Boolean batchMode);
boolean isBatchModeEnabled();
default boolean getDefaultBatchMode() {
return false;
}
/**
* Get what the machine can void or not
*/
@Nonnull
VoidingMode getVoidMode();
/**
* Called when the processing logic should be updated by {@link #needsUpdate()}
*/
default void updateProcessingLogic(@Nonnull P processingLogic) {}
/**
* Called before the recipe check, but after any other updates
*/
default void setProcessingLogicPower(@Nonnull P processingLogic) {}
/**
* DO NOT CALL YOURSELF!!!
*
* If you want to make the processing logic be updated call {@link #setProcessingUpdate(boolean)}
*/
boolean needsUpdate();
/**
* To be called when one needs to updated the processing logic. That can be when parallel changes, ect.
*/
void setProcessingUpdate(boolean update);
}
|