Record Class GuiLayerBoundary.Effects

java.lang.Object
java.lang.Record
com.render.api.gui.internal.GuiLayerBoundary.Effects
Enclosing class:
GuiLayerBoundary

public static record GuiLayerBoundary.Effects(GuiFilterChain filters, List<GuiMaskLayer> masks, GuiRect maskReference, GuiTransform.Projective maskTransform, GuiPaintWorkletContext paintContext, GuiRect maskPaddingReference, GuiRect maskContentReference) extends Record
Filter and mask ownership at the exact painter-order boundary of one retained subtree.
  • Constructor Details

    • Effects

      public Effects(GuiFilterChain filters, List<GuiMaskLayer> masks)
      Preserves the original untransformed boundary constructor.
    • Effects

      public Effects(GuiFilterChain filters, List<GuiMaskLayer> masks, GuiRect maskReference, GuiTransform.Projective maskTransform, GuiPaintWorkletContext paintContext)
    • Effects

      public Effects(GuiFilterChain filters, List<GuiMaskLayer> masks, GuiRect maskReference, GuiTransform.Projective maskTransform, GuiPaintWorkletContext paintContext, GuiRect maskPaddingReference, GuiRect maskContentReference)
      Creates an instance of a Effects record class.
      Parameters:
      filters - the value for the filters record component
      masks - the value for the masks record component
      maskReference - the value for the maskReference record component
      maskTransform - the value for the maskTransform record component
      paintContext - the value for the paintContext record component
      maskPaddingReference - the value for the maskPaddingReference record component
      maskContentReference - the value for the maskContentReference 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • filters

      public GuiFilterChain filters()
      Returns the value of the filters record component.
      Returns:
      the value of the filters record component
    • masks

      public List<GuiMaskLayer> masks()
      Returns the value of the masks record component.
      Returns:
      the value of the masks record component
    • maskReference

      public GuiRect maskReference()
      Returns the value of the maskReference record component.
      Returns:
      the value of the maskReference record component
    • maskTransform

      public GuiTransform.Projective maskTransform()
      Returns the value of the maskTransform record component.
      Returns:
      the value of the maskTransform record component
    • paintContext

      public GuiPaintWorkletContext paintContext()
      Returns the value of the paintContext record component.
      Returns:
      the value of the paintContext record component
    • maskPaddingReference

      public GuiRect maskPaddingReference()
      Returns the value of the maskPaddingReference record component.
      Returns:
      the value of the maskPaddingReference record component
    • maskContentReference

      public GuiRect maskContentReference()
      Returns the value of the maskContentReference record component.
      Returns:
      the value of the maskContentReference record component