Record Class LineRenderable

java.lang.Object
java.lang.Record
dev.upcraft.sparkweave.api.client.render.LineRenderable
All Implemented Interfaces:
DebugRenderable

public record LineRenderable(float startX, float startY, float startZ, float endX, float endY, float endZ, int red, int green, int blue, int alpha, long creationTime, long duration) extends Record implements DebugRenderable
  • Constructor Summary

    Constructors
    Constructor
    Description
    LineRenderable(float startX, float startY, float startZ, float endX, float endY, float endZ, int red, int green, int blue, int alpha, long creationTime, long duration)
    Creates an instance of a LineRenderable record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the alpha record component.
    int
    Returns the value of the blue record component.
    long
    Returns the value of the creationTime record component.
    long
    Returns the value of the duration record component.
    float
    Returns the value of the endX record component.
    float
    Returns the value of the endY record component.
    float
    Returns the value of the endZ record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
     
    long
     
    net.minecraft.client.renderer.RenderType
     
    int
    Returns the value of the green record component.
    final int
    Returns a hash code value for this object.
    int
    red()
    Returns the value of the red record component.
    void
    render(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer)
     
    float
    Returns the value of the startX record component.
    float
    Returns the value of the startY record component.
    float
    Returns the value of the startZ record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LineRenderable

      public LineRenderable(float startX, float startY, float startZ, float endX, float endY, float endZ, int red, int green, int blue, int alpha, long creationTime, long duration)
      Creates an instance of a LineRenderable record class.
      Parameters:
      startX - the value for the startX record component
      startY - the value for the startY record component
      startZ - the value for the startZ record component
      endX - the value for the endX record component
      endY - the value for the endY record component
      endZ - the value for the endZ record component
      red - the value for the red record component
      green - the value for the green record component
      blue - the value for the blue record component
      alpha - the value for the alpha record component
      creationTime - the value for the creationTime record component
      duration - the value for the duration record component
  • Method Details

    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer)
      Specified by:
      render in interface DebugRenderable
    • getCreationTimeMs

      public long getCreationTimeMs()
      Specified by:
      getCreationTimeMs in interface DebugRenderable
    • getRenderDurationMs

      public long getRenderDurationMs()
      Specified by:
      getRenderDurationMs in interface DebugRenderable
    • getRenderLayer

      public net.minecraft.client.renderer.RenderType getRenderLayer()
      Specified by:
      getRenderLayer in interface DebugRenderable
    • 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 '=='.
      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.
    • startX

      public float startX()
      Returns the value of the startX record component.
      Returns:
      the value of the startX record component
    • startY

      public float startY()
      Returns the value of the startY record component.
      Returns:
      the value of the startY record component
    • startZ

      public float startZ()
      Returns the value of the startZ record component.
      Returns:
      the value of the startZ record component
    • endX

      public float endX()
      Returns the value of the endX record component.
      Returns:
      the value of the endX record component
    • endY

      public float endY()
      Returns the value of the endY record component.
      Returns:
      the value of the endY record component
    • endZ

      public float endZ()
      Returns the value of the endZ record component.
      Returns:
      the value of the endZ record component
    • red

      public int red()
      Returns the value of the red record component.
      Returns:
      the value of the red record component
    • green

      public int green()
      Returns the value of the green record component.
      Returns:
      the value of the green record component
    • blue

      public int blue()
      Returns the value of the blue record component.
      Returns:
      the value of the blue record component
    • alpha

      public int alpha()
      Returns the value of the alpha record component.
      Returns:
      the value of the alpha record component
    • creationTime

      public long creationTime()
      Returns the value of the creationTime record component.
      Returns:
      the value of the creationTime record component
    • duration

      public long duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component