Record Class GuiLayerBoundary

java.lang.Object
java.lang.Record
com.render.api.gui.internal.GuiLayerBoundary
Record Components:
id - paired boundary identity
phase - begin or end marker
kind - compositor operation
bounds - design-space operation bounds
radii - independent rounded-mask radii
opacity - isolated-group opacity
screenWidth - GUI-scaled surface width
screenHeight - GUI-scaled surface height
scale - design-to-surface scale
offsetX - design-space horizontal surface offset
offsetY - 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.
  • 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 a GuiLayerBoundary record class.
      Parameters:
      id - the value for the id record component
      phase - the value for the phase record component
      kind - the value for the kind record component
      bounds - the value for the bounds record component
      radii - the value for the radii record component
      opacity - the value for the opacity record component
      screenWidth - the value for the screenWidth record component
      screenHeight - the value for the screenHeight record component
      scale - the value for the scale record component
      offsetX - the value for the offsetX record component
      offsetY - the value for the offsetY record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • phase

      public GuiLayerBoundary.Phase phase()
      Returns the value of the phase record component.
      Returns:
      the value of the phase record component
    • kind

      public GuiLayerBoundary.Kind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • bounds

      public GuiRect bounds()
      Returns the value of the bounds record component.
      Returns:
      the value of the bounds record component
    • radii

      public GuiCornerRadii radii()
      Returns the value of the radii record component.
      Returns:
      the value of the radii record component
    • opacity

      public float opacity()
      Returns the value of the opacity record component.
      Returns:
      the value of the opacity record component
    • screenWidth

      public float screenWidth()
      Returns the value of the screenWidth record component.
      Returns:
      the value of the screenWidth record component
    • screenHeight

      public float screenHeight()
      Returns the value of the screenHeight record component.
      Returns:
      the value of the screenHeight record component
    • scale

      public float scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • offsetX

      public float offsetX()
      Returns the value of the offsetX record component.
      Returns:
      the value of the offsetX record component
    • offsetY

      public float offsetY()
      Returns the value of the offsetY record component.
      Returns:
      the value of the offsetY record component