Record Class GuiBorderImage
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiBorderImage
- Record Components:
image- source imagesliceTop- top slice relative to image heightsliceRight- right slice relative to image widthsliceBottom- bottom slice relative to image heightsliceLeft- left slice relative to image widthfillCenter- whether the center slice is paintedrepeat- repetition along border edges
public record GuiBorderImage(GuiImage image, float sliceTop, float sliceRight, float sliceBottom, float sliceLeft, boolean fillCenter, GuiBackgroundRepeat repeat)
extends Record
Reusable image sliced over a border.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiBorderImage(GuiImage image, float sliceTop, float sliceRight, float sliceBottom, float sliceLeft, boolean fillCenter, GuiBackgroundRepeat repeat) Creates an instance of aGuiBorderImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefillCenterrecord component.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.repeat()Returns the value of therepeatrecord component.floatReturns the value of thesliceBottomrecord component.floatReturns the value of thesliceLeftrecord component.floatReturns the value of thesliceRightrecord component.floatsliceTop()Returns the value of thesliceToprecord component.final StringtoString()Returns a string representation of this record class.static GuiBorderImage
-
Constructor Details
-
GuiBorderImage
public GuiBorderImage(GuiImage image, float sliceTop, float sliceRight, float sliceBottom, float sliceLeft, boolean fillCenter, GuiBackgroundRepeat repeat) Creates an instance of aGuiBorderImagerecord class.- Parameters:
image- the value for theimagerecord componentsliceTop- the value for thesliceToprecord componentsliceRight- the value for thesliceRightrecord componentsliceBottom- the value for thesliceBottomrecord componentsliceLeft- the value for thesliceLeftrecord componentfillCenter- the value for thefillCenterrecord componentrepeat- the value for therepeatrecord component
-
-
Method Details
-
uniform
-
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. -
image
-
sliceTop
-
sliceRight
public float sliceRight()Returns the value of thesliceRightrecord component.- Returns:
- the value of the
sliceRightrecord component
-
sliceBottom
public float sliceBottom()Returns the value of thesliceBottomrecord component.- Returns:
- the value of the
sliceBottomrecord component
-
sliceLeft
-
fillCenter
public boolean fillCenter()Returns the value of thefillCenterrecord component.- Returns:
- the value of the
fillCenterrecord component
-
repeat
-