Interface IGuiComponent<G>
- Type Parameters:
G- is the type of the GUI aIGuiComponentcan belong to.
- All Known Subinterfaces:
IControlParent, ILayer<L>
- All Known Implementing Classes:
ControlParent, Layer
-
Method Summary
-
Method Details
-
belongsToGui
boolean belongsToGui()- Returns:
- true if the current
IGuiComponentbelongs to a GUI, false otherwise.
-
getStoredParentGui
G getStoredParentGui()- Returns:
- the GUI of the current
IGuiComponent. - Throws:
RuntimeException- if the currentIGuiComponentdoes not belong to a GUI.
-