Record Class GuiMaskLayer
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiMaskLayer
- Record Components:
image- image supplying mask samplesmode- alpha or luminance sampling modeposition- image position inside the positioning areasize- resolved mask-image sizeorigin- box defining the positioning areaclip- box limiting mask paintingrepeat- mask-image repeat behaviorcomposite- operation combining this layer with lower mask layers
public record GuiMaskLayer(GuiImage image, GuiMaskMode mode, GuiBackgroundPosition position, GuiBackgroundSize size, GuiBackgroundBox origin, GuiBackgroundBox clip, GuiBackgroundRepeat repeat, GuiMaskComposite composite)
extends Record
One immutable ordered image-mask layer.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiMaskLayer(GuiImage image, GuiMaskMode mode, GuiBackgroundPosition position, GuiBackgroundSize size, GuiBackgroundBox origin, GuiBackgroundBox clip, GuiBackgroundRepeat repeat, GuiMaskComposite composite) Creates an instance of aGuiMaskLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiMaskLayerclip()Returns the value of thecliprecord component.Returns the value of thecompositerecord 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.mode()Returns the value of themoderecord 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.
-
Constructor Details
-
GuiMaskLayer
public GuiMaskLayer(GuiImage image, GuiMaskMode mode, GuiBackgroundPosition position, GuiBackgroundSize size, GuiBackgroundBox origin, GuiBackgroundBox clip, GuiBackgroundRepeat repeat, GuiMaskComposite composite) Creates an instance of aGuiMaskLayerrecord class.- Parameters:
image- the value for theimagerecord componentmode- the value for themoderecord componentposition- the value for thepositionrecord componentsize- the value for thesizerecord componentorigin- the value for theoriginrecord componentclip- the value for thecliprecord componentrepeat- the value for therepeatrecord componentcomposite- the value for thecompositerecord component
-
-
Method Details
-
alpha
-
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). -
image
-
mode
-
position
-
size
-
origin
-
clip
-
repeat
-
composite
-