Record Class GuiLayerBoundary
java.lang.Object
java.lang.Record
com.render.api.gui.internal.GuiLayerBoundary
- Record Components:
id- paired boundary identityphase- begin or end markerkind- compositor operationbounds- design-space operation boundsradii- independent rounded-mask radiiopacity- isolated-group opacityscreenWidth- GUI-scaled surface widthscreenHeight- GUI-scaled surface heightscale- design-to-surface scaleoffsetX- design-space horizontal surface offsetoffsetY- design-space vertical surface offset
public record GuiLayerBoundary(long id, GuiLayerBoundary.Phase phase, GuiLayerBoundary.Kind kind, GuiRect bounds, GuiCornerRadii radii, float opacity, float screenWidth, float screenHeight, float scale, float offsetX, float offsetY)
extends Record
One extraction-order layer boundary consumed between Minecraft GUI draw ranges.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionGuiLayerBoundary(long id, GuiLayerBoundary.Phase phase, GuiLayerBoundary.Kind kind, GuiRect bounds, GuiCornerRadii radii, float opacity, float screenWidth, float screenHeight, float scale, float offsetX, float offsetY) Creates an instance of aGuiLayerBoundaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.floatoffsetX()Returns the value of theoffsetXrecord component.floatoffsetY()Returns the value of theoffsetYrecord component.floatopacity()Returns the value of theopacityrecord component.phase()Returns the value of thephaserecord component.radii()Returns the value of theradiirecord component.floatscale()Returns the value of thescalerecord component.floatReturns the value of thescreenHeightrecord component.floatReturns the value of thescreenWidthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiLayerBoundary
public GuiLayerBoundary(long id, GuiLayerBoundary.Phase phase, GuiLayerBoundary.Kind kind, GuiRect bounds, GuiCornerRadii radii, float opacity, float screenWidth, float screenHeight, float scale, float offsetX, float offsetY) Creates an instance of aGuiLayerBoundaryrecord class.- Parameters:
id- the value for theidrecord componentphase- the value for thephaserecord componentkind- the value for thekindrecord componentbounds- the value for theboundsrecord componentradii- the value for theradiirecord componentopacity- the value for theopacityrecord componentscreenWidth- the value for thescreenWidthrecord componentscreenHeight- the value for thescreenHeightrecord componentscale- the value for thescalerecord componentoffsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord component
-
-
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. -
id
-
phase
-
kind
-
bounds
-
radii
-
opacity
-
screenWidth
public float screenWidth()Returns the value of thescreenWidthrecord component.- Returns:
- the value of the
screenWidthrecord component
-
screenHeight
public float screenHeight()Returns the value of thescreenHeightrecord component.- Returns:
- the value of the
screenHeightrecord component
-
scale
-
offsetX
-
offsetY
-