Record Class GuiPaintContext.BoxOptions

java.lang.Object
java.lang.Record
com.render.api.gui.GuiPaintContext.BoxOptions
Record Components:
backgroundColor - background fill color
borderColor - border color
borderWidth - border width in design-space pixels
cornerRadius - corner radius in design-space pixels
opacity - opacity multiplier from zero through one
shadow - optional box shadow
glow - optional box glow
gradient - optional background gradient
animatedBorder - optional animated-border effect
Enclosing class:
GuiPaintContext

public static record GuiPaintContext.BoxOptions(RenderColor backgroundColor, RenderColor borderColor, float borderWidth, float cornerRadius, float opacity, GuiShadow shadow, GuiGlow glow, GuiGradient gradient, GuiAnimatedBorder animatedBorder) extends Record
Immutable options for a custom box paint operation.

Mutable effect objects are copied when the options are created and when returned through their accessors, so a shared options instance can safely be reused.

  • Constructor Details

    • BoxOptions

      public BoxOptions(RenderColor backgroundColor, RenderColor borderColor, float borderWidth, float cornerRadius, float opacity, GuiShadow shadow, GuiGlow glow, GuiGradient gradient, GuiAnimatedBorder animatedBorder)
      Creates an instance of a BoxOptions record class.
      Parameters:
      backgroundColor - the value for the backgroundColor record component
      borderColor - the value for the borderColor record component
      borderWidth - the value for the borderWidth record component
      cornerRadius - the value for the cornerRadius record component
      opacity - the value for the opacity record component
      shadow - the value for the shadow record component
      glow - the value for the glow record component
      gradient - the value for the gradient record component
      animatedBorder - the value for the animatedBorder record component
  • Method Details