public class GuiElementParser
extends java.lang.Object
Constructor and Description |
---|
GuiElementParser(@NotNull JXCSkinCache<AbstractGUIElement> definedGUIElements)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull AbstractLabel |
lookupLabelElement(@NotNull java.lang.String name)
Returns a
AbstractLabel by element name. |
@NotNull GUILabelLog |
lookupLabelLogElement(@NotNull java.lang.String name)
Returns a
AbstractLabel by element name. |
@NotNull GUIText |
lookupTextElement(@NotNull java.lang.String name)
Returns a
GUIText by element name. |
public GuiElementParser(@NotNull @NotNull JXCSkinCache<AbstractGUIElement> definedGUIElements)
definedGUIElements
- the defined gui elements@NotNull public @NotNull GUIText lookupTextElement(@NotNull @NotNull java.lang.String name) throws JXCSkinException
GUIText
by element name.name
- the element nameGUIText
elementJXCSkinException
- if the element name is undefined@NotNull public @NotNull AbstractLabel lookupLabelElement(@NotNull @NotNull java.lang.String name) throws JXCSkinException
AbstractLabel
by element name.name
- the element nameAbstractLabel
elementJXCSkinException
- if the element name is undefined@NotNull public @NotNull GUILabelLog lookupLabelLogElement(@NotNull @NotNull java.lang.String name) throws JXCSkinException
AbstractLabel
by element name.name
- the element nameAbstractLabel
elementJXCSkinException
- if the element name is undefined