Class GuiStyleDeclarations
java.lang.Object
com.render.api.gui.style.GuiStyleDeclarations
Immutable typed declaration block used by rules and inline modern styles.
-
Method Summary
Modifier and TypeMethodDescriptionMap<GuiStyleProperty<?>, GuiStyleValue<?>> asMap()Returns an immutable declaration map.<T> GuiStyleValue<T> declaration(GuiStyleProperty<T> property) Returns a typed declaration ornullwhen absent.static GuiStyleDeclarationsempty()Returns an empty declaration block.booleanisEmpty()Returns whether this block has no declarations.Set<GuiStyleProperty<?>> Returns the declared property keys.
-
Method Details
-
empty
Returns an empty declaration block.- Returns:
- empty declarations
-
isEmpty
public boolean isEmpty()Returns whether this block has no declarations.- Returns:
- empty flag
-
properties
Returns the declared property keys.- Returns:
- immutable property set
-
declaration
Returns a typed declaration ornullwhen absent.- Type Parameters:
T- property type- Parameters:
property- property- Returns:
- declaration value
-
asMap
Returns an immutable declaration map.- Returns:
- declarations
-