-
Notifications
You must be signed in to change notification settings - Fork 497
/
ITrigger.java
41 lines (31 loc) · 939 Bytes
/
ITrigger.java
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
package buildcraft.api.gates;
import net.minecraft.tileentity.TileEntity;
public interface ITrigger {
public abstract int getId();
/**
* Return the texture file for this trigger icon
*/
public abstract String getTextureFile();
/**
* Return the icon id in the texture file
*/
public abstract int getIndexInTexture();
/**
* Return true if this trigger can accept parameters
*/
public abstract boolean hasParameter();
/**
* Return the trigger description in the UI
*/
public abstract String getDescription();
/**
* Return true if the tile given in parameter activates the trigger, given
* the parameters.
*/
public abstract boolean isTriggerActive(TileEntity tile, ITriggerParameter parameter);
/**
* Create parameters for the trigger. As for now, there is only one kind of
* trigger parameter available so this subprogram is final.
*/
public abstract ITriggerParameter createParameter();
}