2013-08-26 19:36:24 +02:00
|
|
|
package ic2.api.item;
|
|
|
|
|
2013-10-12 12:12:59 +02:00
|
|
|
|
|
|
|
|
2013-08-26 19:36:24 +02:00
|
|
|
/**
|
2013-10-12 12:12:59 +02:00
|
|
|
* Allows a tile entity to output a debug message when the debugItem is used on it.
|
|
|
|
* Suggestions by Myrathi
|
2013-08-26 19:36:24 +02:00
|
|
|
*/
|
2013-10-12 12:12:59 +02:00
|
|
|
public abstract interface IDebuggable {
|
|
|
|
/**
|
|
|
|
* Checks if the tile entity is in a state that can be debugged.
|
|
|
|
*
|
|
|
|
* @return True if the tile entity can be debugged
|
|
|
|
*/
|
|
|
|
public abstract boolean isDebuggable();
|
2013-08-26 19:36:24 +02:00
|
|
|
|
2013-10-12 12:12:59 +02:00
|
|
|
/**
|
|
|
|
* Gets the debug text for the tile entity.
|
|
|
|
*
|
|
|
|
* @return The text that the debugItem should show
|
|
|
|
*/
|
|
|
|
public abstract String getDebugText();
|
2013-08-26 19:36:24 +02:00
|
|
|
}
|