Record Class ColoredRectangleRenderState

java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.ColoredRectangleRenderState
All Implemented Interfaces:
GuiElementRenderState, ScreenArea

public record ColoredRectangleRenderState(RenderPipeline pipeline, TextureSetup textureSetup, Matrix3x2f pose, int x0, int y0, int x1, int y1, int col1, int col2, @Nullable ScreenRectangle scissorArea, @Nullable ScreenRectangle bounds) extends Record implements GuiElementRenderState
  • Field Details

    • pipeline

      private final RenderPipeline pipeline
      The field for the pipeline record component.
    • textureSetup

      private final TextureSetup textureSetup
      The field for the textureSetup record component.
    • pose

      private final Matrix3x2f pose
      The field for the pose record component.
    • x0

      private final int x0
      The field for the x0 record component.
    • y0

      private final int y0
      The field for the y0 record component.
    • x1

      private final int x1
      The field for the x1 record component.
    • y1

      private final int y1
      The field for the y1 record component.
    • col1

      private final int col1
      The field for the col1 record component.
    • col2

      private final int col2
      The field for the col2 record component.
    • scissorArea

      @Nullable private final ScreenRectangle scissorArea
      The field for the scissorArea record component.
    • bounds

      @Nullable private final ScreenRectangle bounds
      The field for the bounds record component.
  • Constructor Details

    • ColoredRectangleRenderState

      public ColoredRectangleRenderState(RenderPipeline p_416046_, TextureSetup p_415678_, Matrix3x2f p_416570_, int p_416448_, int p_416038_, int p_416700_, int p_416540_, int p_415887_, int p_416111_, @Nullable ScreenRectangle p_416231_)
    • ColoredRectangleRenderState

      public ColoredRectangleRenderState(RenderPipeline pipeline, TextureSetup textureSetup, Matrix3x2f pose, int x0, int y0, int x1, int y1, int col1, int col2, @Nullable ScreenRectangle scissorArea, @Nullable ScreenRectangle bounds)
      Creates an instance of a ColoredRectangleRenderState record class.
      Parameters:
      pipeline - the value for the pipeline record component
      textureSetup - the value for the textureSetup record component
      pose - the value for the pose record component
      x0 - the value for the x0 record component
      y0 - the value for the y0 record component
      x1 - the value for the x1 record component
      y1 - the value for the y1 record component
      col1 - the value for the col1 record component
      col2 - the value for the col2 record component
      scissorArea - the value for the scissorArea record component
      bounds - the value for the bounds record component
  • Method Details

    • buildVertices

      public void buildVertices(VertexConsumer p_415536_)
      Specified by:
      buildVertices in interface GuiElementRenderState
    • getBounds

      @Nullable private static ScreenRectangle getBounds(int pX0, int pY0, int pX1, int pY1, Matrix3x2f pPose, @Nullable ScreenRectangle pScissorArea)
    • 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 '=='.
      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.
    • pipeline

      public RenderPipeline pipeline()
      Returns the value of the pipeline record component.
      Specified by:
      pipeline in interface GuiElementRenderState
      Returns:
      the value of the pipeline record component
    • textureSetup

      public TextureSetup textureSetup()
      Returns the value of the textureSetup record component.
      Specified by:
      textureSetup in interface GuiElementRenderState
      Returns:
      the value of the textureSetup record component
    • pose

      public Matrix3x2f pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component
    • x0

      public int x0()
      Returns the value of the x0 record component.
      Returns:
      the value of the x0 record component
    • y0

      public int y0()
      Returns the value of the y0 record component.
      Returns:
      the value of the y0 record component
    • x1

      public int x1()
      Returns the value of the x1 record component.
      Returns:
      the value of the x1 record component
    • y1

      public int y1()
      Returns the value of the y1 record component.
      Returns:
      the value of the y1 record component
    • col1

      public int col1()
      Returns the value of the col1 record component.
      Returns:
      the value of the col1 record component
    • col2

      public int col2()
      Returns the value of the col2 record component.
      Returns:
      the value of the col2 record component
    • scissorArea

      @Nullable public ScreenRectangle scissorArea()
      Returns the value of the scissorArea record component.
      Specified by:
      scissorArea in interface GuiElementRenderState
      Returns:
      the value of the scissorArea record component
    • bounds

      @Nullable public ScreenRectangle bounds()
      Returns the value of the bounds record component.
      Specified by:
      bounds in interface ScreenArea
      Returns:
      the value of the bounds record component