mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-26 15:03:17 +00:00
feat(interface): add IInterfaceNameProvider API for dynamic terminal name suffixes (#1196)
This commit is contained in:
1 parent
6142e8417a
commit
9a07b7d141
8 files changed
+203
-47
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package appeng.api.interfaces;
|
||||
|
||||
/**
|
||||
* Implement this on a TileEntity (or IMetaTileEntity, wrapped via the hosting TileEntity) to provide a dynamic suffix
|
||||
* for the AE2 interface name shown in the terminal.
|
||||
*
|
||||
* Example use-case: a GregTech machine adjacent to an ME Interface can expose its ghost-circuit configuration number so
|
||||
* the terminal displays "MachineName [24]".
|
||||
*/
|
||||
public interface IInterfaceNameProvider {
|
||||
|
||||
/**
|
||||
* Returns a suffix string to append to the ME Interface's display name, or {@code null} if no suffix should be
|
||||
* shown.
|
||||
*
|
||||
* The returned string will be appended as-is (e.g. {@code " [24]"}).
|
||||
*
|
||||
* @return suffix string or {@code null}
|
||||
*/
|
||||
String getInterfaceNameSuffix();
|
||||
}
|
||||
Reference in new issue
Block a user