2014-08-10 04:20:49 +02:00
|
|
|
package mekanism.common.base;
|
2012-12-19 21:23:55 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Implement this if your machine/generator has some form of active state.
|
|
|
|
* @author aidancbrady
|
|
|
|
*
|
|
|
|
*/
|
2014-03-08 02:00:25 +01:00
|
|
|
public interface IActiveState
|
2012-12-19 21:23:55 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Gets the active state as a boolean.
|
|
|
|
* @return active state
|
|
|
|
*/
|
|
|
|
public boolean getActive();
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2012-12-19 21:23:55 +01:00
|
|
|
/**
|
|
|
|
* Sets the active state to a new value.
|
|
|
|
* @param active - new active state
|
|
|
|
*/
|
|
|
|
public void setActive(boolean active);
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2013-07-07 18:13:52 +02:00
|
|
|
/**
|
|
|
|
* Whether or not this block has a visual effect when it is on it's active state. Used for rendering.
|
|
|
|
* @return if the block has a visual effect in it's active state
|
|
|
|
*/
|
2013-11-02 04:51:10 +01:00
|
|
|
public boolean renderUpdate();
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2013-11-02 04:51:10 +01:00
|
|
|
public boolean lightUpdate();
|
2012-12-19 21:23:55 +01:00
|
|
|
}
|