-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathIMaintenanceHatch.java
More file actions
49 lines (39 loc) · 1.26 KB
/
IMaintenanceHatch.java
File metadata and controls
49 lines (39 loc) · 1.26 KB
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
package gregtech.api.capability;
import net.minecraft.util.Tuple;
public interface IMaintenanceHatch {
/**
* @return true if this is a Full-Auto Maintenance Hatch, false otherwise.
*/
boolean isFullAuto();
/**
* Sets this Maintenance Hatch as being duct taped
*
* @param isTaped is the state of the hatch being taped or not
*/
void setTaped(boolean isTaped);
/**
* Stores maintenance data to this MetaTileEntity
*
* @param maintenanceProblems is the byte value representing the problems
* @param timeActive is the int value representing the total time the parent multiblock has been active
*/
void storeMaintenanceData(byte maintenanceProblems, int timeActive);
/**
*
* @return whether this maintenance hatch has maintenance data
*/
boolean hasMaintenanceData();
/**
* reads this MetaTileEntity's maintenance data
*
* @return Tuple of Byte, Integer corresponding to the maintenance problems, and total time active
*/
Tuple<Byte, Integer> readMaintenanceData();
default double getDurationMultiplier() {
return 1.0d;
}
default double getTimeMultiplier() {
return 1.0d;
}
boolean startWithoutProblems();
}