Class GuiStyleProperty<T>

java.lang.Object
com.render.api.gui.style.GuiStyleProperty<T>
Type Parameters:
T - resolved property type

public final class GuiStyleProperty<T> extends Object
Metadata and validation for one typed modern style property.
  • Method Details

    • name

      public String name()
      Returns the stable Java property name.
      Returns:
      property name
    • valueType

      public Class<T> valueType()
      Returns the runtime value type.
      Returns:
      value type
    • initialValue

      public T initialValue()
      Returns a detached initial value.
      Returns:
      initial value
    • inheritable

      public boolean inheritable()
      Returns whether the property normally inherits.
      Returns:
      inheritance flag
    • interpolation

      public GuiStyleInterpolation interpolation()
      Returns the animation interpolation category.
      Returns:
      interpolation category
    • invalidation

      public Set<GuiDirtyCategory> invalidation()
      Returns the immutable invalidation categories.
      Returns:
      invalidation categories
    • copyForAnimation

      public T copyForAnimation(T value)
      Returns a detached value suitable for an animation snapshot.
      Parameters:
      value - source value
      Returns:
      copied value
    • toString

      public String toString()
      Overrides:
      toString in class Object