Class GuiStyleDeclarations

java.lang.Object
com.render.api.gui.style.GuiStyleDeclarations

public final class GuiStyleDeclarations extends Object
Immutable typed declaration block used by rules and inline modern styles.
  • Method Details

    • empty

      public static GuiStyleDeclarations empty()
      Returns an empty declaration block.
      Returns:
      empty declarations
    • isEmpty

      public boolean isEmpty()
      Returns whether this block has no declarations.
      Returns:
      empty flag
    • properties

      public Set<GuiStyleProperty<?>> properties()
      Returns the declared property keys.
      Returns:
      immutable property set
    • declaration

      public <T> GuiStyleValue<T> declaration(GuiStyleProperty<T> property)
      Returns a typed declaration or null when absent.
      Type Parameters:
      T - property type
      Parameters:
      property - property
      Returns:
      declaration value
    • asMap

      public Map<GuiStyleProperty<?>, GuiStyleValue<?>> asMap()
      Returns an immutable declaration map.
      Returns:
      declarations