Class GuiShadow

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

public final class GuiShadow extends Object
Drop-shadow configuration for GUI components.
  • Constructor Details

    • GuiShadow

      public GuiShadow()
  • Method Details

    • color

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

      public GuiShadow color(RenderColor color)
      Sets the shadow color in ARGB format.
      Parameters:
      color - shadow color
      Returns:
      this effect
    • color

      @Deprecated(forRemoval=false) public GuiShadow color(int argb)
      Deprecated.
    • blur

      public float blur()
      Returns the blur radius in design-space pixels.
      Returns:
      blur radius
    • blur

      public GuiShadow blur(float blur)
      Sets the blur radius in design-space pixels.
      Parameters:
      blur - blur radius
      Returns:
      this effect
    • spread

      public float spread()
      Returns the shadow spread in design-space pixels.
      Returns:
      shadow spread
    • spread

      public GuiShadow spread(float spread)
      Sets the shadow spread in design-space pixels.
      Parameters:
      spread - shadow spread
      Returns:
      this effect
    • offsetX

      public float offsetX()
      Returns the horizontal shadow offset in design-space pixels.
      Returns:
      horizontal offset
    • offsetY

      public float offsetY()
      Returns the vertical shadow offset in design-space pixels.
      Returns:
      vertical offset
    • offset

      public GuiShadow offset(float offsetX, float offsetY)
      Sets the shadow offset in design-space pixels.
      Parameters:
      offsetX - horizontal offset
      offsetY - vertical offset
      Returns:
      this effect
    • copy

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