Record Class GuiOutline
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiOutline
- Record Components:
width- outline widthstyle- outline line stylecolor- outline coloroffset- distance outside the border
public record GuiOutline(float width, GuiBorderStyle style, RenderColor color, float offset)
extends Record
Immutable outline painted outside the border without affecting layout.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiOutline(float width, GuiBorderStyle style, RenderColor color, float offset) Creates an instance of aGuiOutlinerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatoffset()Returns the value of theoffsetrecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
width
-
style
-
color
-
offset
-