mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-21 12:42:24 +00:00
25 lines
871 B
Java
25 lines
871 B
Java
package mcp.mobius.waila.api;
|
|
|
|
import java.awt.Dimension;
|
|
import java.awt.Point;
|
|
|
|
|
|
public interface IWailaTooltipRenderer {
|
|
/**
|
|
*
|
|
* @param params Array of string parameters as passed to the RENDER arg in the tooltip ({rendername,param1,param2,...})
|
|
* @param accessor A global accessor for TileEntities and Entities
|
|
* @return Dimension of the reserved area
|
|
*/
|
|
Dimension getSize(String[] params, IWailaCommonAccessor accessor);
|
|
|
|
/**
|
|
* Draw method for the renderer. The GL matrice is automatically moved to the top left of the reserved zone.<br>
|
|
* All calls should be relative to (0,0)
|
|
*
|
|
* @param params Array of string parameters as passed to the RENDER arg in the tooltip ({rendername,param1,param2,...})
|
|
* @param accessor A global accessor for TileEntities and Entities
|
|
*/
|
|
void draw (String[] params, IWailaCommonAccessor accessor);
|
|
}
|