aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java
blob: f4c63c803e580443ac08748e1642f6d695eda68e (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
package gregtech.api.interfaces.tileentity;

/**
 * This File has just internal Information about the Redstone State of a TileEntity
 */
public interface IRedstoneReceiver extends IHasWorldObjectAndCoords {
	/**
	 * gets the Redstone Level of the TileEntity to the given Input Side
	 * 
	 * Do not use this if ICoverable is implemented. ICoverable has @getInternalInputRedstoneSignal for Machine internal Input Redstone
	 * This returns the true incoming Redstone Signal. Only Cover Behaviors should check it, not MetaTileEntities.
	 */
	public byte getInputRedstoneSignal(byte aSide);
	
	/**
	 * gets the strongest Redstone Level the TileEntity receives
	 */
	public byte getStrongestRedstone();
	
	/**
	 * gets if the TileEntity receives Redstone
	 */
    public boolean getRedstone();
    
	/**
	 * gets if the TileEntity receives Redstone at this Side
	 */
    public boolean getRedstone(byte aSide);
}