Record Class GuiBorder
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiBorder
- Record Components:
top- physical top sideright- physical right sidebottom- physical bottom sideleft- physical left sideinlineStart- optional logical inline-start overrideinlineEnd- optional logical inline-end overrideblockStart- optional logical block-start overrideblockEnd- optional logical block-end overrideradii- elliptical corner radiiimage- optional sliced border image
public record GuiBorder(GuiBorderSide top, GuiBorderSide right, GuiBorderSide bottom, GuiBorderSide left, GuiBorderSide inlineStart, GuiBorderSide inlineEnd, GuiBorderSide blockStart, GuiBorderSide blockEnd, GuiCornerRadii radii, GuiBorderImage image)
extends Record
Immutable per-side border, corner, logical-side, and border-image value.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiBorder(GuiBorderSide top, GuiBorderSide right, GuiBorderSide bottom, GuiBorderSide left, GuiBorderSide inlineStart, GuiBorderSide inlineEnd, GuiBorderSide blockStart, GuiBorderSide blockEnd, GuiCornerRadii radii, GuiBorderImage image) Creates an instance of aGuiBorderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblockEnd()Returns the value of theblockEndrecord component.Returns the value of theblockStartrecord component.bottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.Returns the value of theinlineEndrecord component.Returns the value of theinlineStartrecord component.booleanleft()Returns the value of theleftrecord component.radii()Returns the value of theradiirecord component.resolve(boolean rightToLeft) right()Returns the value of therightrecord component.static GuiBordersolid(float width, RenderColor color, float radius) top()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.static GuiBorderuniform(float width, GuiBorderStyle style, RenderColor color, float radius) withImage(GuiBorderImage value) withLogicalSides(GuiBorderSide inlineStart, GuiBorderSide inlineEnd, GuiBorderSide blockStart, GuiBorderSide blockEnd) withRadii(GuiCornerRadii value)
-
Constructor Details
-
GuiBorder
public GuiBorder(GuiBorderSide top, GuiBorderSide right, GuiBorderSide bottom, GuiBorderSide left, GuiBorderSide inlineStart, GuiBorderSide inlineEnd, GuiBorderSide blockStart, GuiBorderSide blockEnd, GuiCornerRadii radii, GuiBorderImage image) Creates an instance of aGuiBorderrecord class.- Parameters:
top- the value for thetoprecord componentright- the value for therightrecord componentbottom- the value for thebottomrecord componentleft- the value for theleftrecord componentinlineStart- the value for theinlineStartrecord componentinlineEnd- the value for theinlineEndrecord componentblockStart- the value for theblockStartrecord componentblockEnd- the value for theblockEndrecord componentradii- the value for theradiirecord componentimage- the value for theimagerecord component
-
-
Method Details
-
uniform
-
solid
-
withRadii
-
withImage
-
withLogicalSides
public GuiBorder withLogicalSides(GuiBorderSide inlineStart, GuiBorderSide inlineEnd, GuiBorderSide blockStart, GuiBorderSide blockEnd) -
resolve
-
isUniformSolidCircular
public boolean isUniformSolidCircular() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
top
-
right
-
bottom
-
left
-
inlineStart
Returns the value of theinlineStartrecord component.- Returns:
- the value of the
inlineStartrecord component
-
inlineEnd
-
blockStart
Returns the value of theblockStartrecord component.- Returns:
- the value of the
blockStartrecord component
-
blockEnd
-
radii
-
image
-