Class GuiAnimatedBorder

java.lang.Object
com.render.api.gui.GuiAnimatedBorder

public final class GuiAnimatedBorder extends Object
Animated border effect configuration for GUI components.

The moving ring is centered on the authored border edge. Its optional glow may extend outside the component's own clip path, while ancestor clips still constrain the decoration.

  • Constructor Details

    • GuiAnimatedBorder

      public GuiAnimatedBorder()
  • Method Details

    • color

      public RenderColor color()
      Returns the animated border color in ARGB format.
      Returns:
      border color
    • color

      public GuiAnimatedBorder color(RenderColor color)
      Sets the animated border color in ARGB format.
      Parameters:
      color - border color
      Returns:
      this effect
    • color

      @Deprecated(forRemoval=false) public GuiAnimatedBorder color(int argb)
      Deprecated.
    • speed

      public float speed()
      Returns the animation speed multiplier.
      Returns:
      animation speed
    • speed

      public GuiAnimatedBorder speed(float speed)
      Sets the animation speed multiplier.
      Parameters:
      speed - animation speed
      Returns:
      this effect
    • widthMultiplier

      public float widthMultiplier()
      Returns the width multiplier applied to the border effect.
      Returns:
      width multiplier
    • widthMultiplier

      public GuiAnimatedBorder widthMultiplier(float widthMultiplier)
      Sets the width multiplier applied to the border effect.
      Parameters:
      widthMultiplier - width multiplier
      Returns:
      this effect
    • glowStrength

      public float glowStrength()
      Returns the glow intensity used by the animated border.
      Returns:
      glow intensity
    • glowStrength

      public GuiAnimatedBorder glowStrength(float glowStrength)
      Sets the glow intensity used by the animated border.
      Parameters:
      glowStrength - glow intensity
      Returns:
      this effect
    • lengthFraction

      public float lengthFraction()
      Returns the fraction of the border perimeter covered by the animated segment.
      Returns:
      border length fraction
    • lengthFraction

      public GuiAnimatedBorder lengthFraction(float lengthFraction)
      Sets the fraction of the border perimeter covered by the animated segment.
      Parameters:
      lengthFraction - border length fraction
      Returns:
      this effect
    • copy

      public GuiAnimatedBorder copy()
      Returns a detached copy of this effect configuration.
      Returns:
      copied effect configuration