Record Class GuiBackgroundLayer
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiBackgroundLayer
- Record Components:
image- reusable image valueposition- layer alignment within its positioning areasize- layer sizing policyrepeat- repetition policyorigin- box used to position the imageclip- box used to clip the imageattachment- scroll/fixed attachment requestopacity- layer opacityblendMode- requested blend operation with layers below it; unsupported non-normal modes use source-over and report compatibility telemetry
public record GuiBackgroundLayer(GuiImage image, GuiBackgroundPosition position, GuiBackgroundSize size, GuiBackgroundRepeat repeat, GuiBackgroundBox origin, GuiBackgroundBox clip, GuiBackgroundAttachment attachment, float opacity, GuiBlendMode blendMode)
extends Record
One ordered modern background image layer.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiBackgroundLayer(GuiImage image, GuiBackgroundPosition position, GuiBackgroundSize size, GuiBackgroundRepeat repeat, GuiBackgroundBox origin, GuiBackgroundBox clip, GuiBackgroundAttachment attachment, float opacity, GuiBlendMode blendMode) Creates an instance of aGuiBackgroundLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentrecord component.Returns the value of theblendModerecord component.clip()Returns the value of thecliprecord 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.static GuiBackgroundLayerfloatopacity()Returns the value of theopacityrecord component.origin()Returns the value of theoriginrecord component.position()Returns the value of thepositionrecord component.repeat()Returns the value of therepeatrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.withBlendMode(GuiBlendMode value) withBoxes(GuiBackgroundBox origin, GuiBackgroundBox clip) withOpacity(float value) withRepeat(GuiBackgroundRepeat value) withSize(GuiBackgroundSize value)
-
Constructor Details
-
GuiBackgroundLayer
public GuiBackgroundLayer(GuiImage image, GuiBackgroundPosition position, GuiBackgroundSize size, GuiBackgroundRepeat repeat, GuiBackgroundBox origin, GuiBackgroundBox clip, GuiBackgroundAttachment attachment, float opacity, GuiBlendMode blendMode) Creates an instance of aGuiBackgroundLayerrecord class.- Parameters:
image- the value for theimagerecord componentposition- the value for thepositionrecord componentsize- the value for thesizerecord componentrepeat- the value for therepeatrecord componentorigin- the value for theoriginrecord componentclip- the value for thecliprecord componentattachment- the value for theattachmentrecord componentopacity- the value for theopacityrecord componentblendMode- the value for theblendModerecord component
-
-
Method Details
-
image
-
withPosition
-
withSize
-
withRepeat
-
withBoxes
-
withAttachment
-
withOpacity
-
withBlendMode
-
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
-
position
-
size
-
repeat
-
origin
-
clip
-
attachment
Returns the value of theattachmentrecord component.- Returns:
- the value of the
attachmentrecord component
-
opacity
-
blendMode
-