Record Class LineRenderable
java.lang.Object
java.lang.Record
dev.upcraft.sparkweave.impl.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
ConstructorsConstructorDescriptionLineRenderable(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 aLineRenderablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintalpha()Returns the value of thealpharecord component.intblue()Returns the value of thebluerecord component.longReturns the value of thecreationTimerecord component.longduration()Returns the value of thedurationrecord component.floatendX()Returns the value of theendXrecord component.floatendY()Returns the value of theendYrecord component.floatendZ()Returns the value of theendZrecord component.final booleanIndicates whether some other object is "equal to" this one.longlongnet.minecraft.client.renderer.RenderTypeintgreen()Returns the value of thegreenrecord component.final inthashCode()Returns a hash code value for this object.intred()Returns the value of theredrecord component.voidrender(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer) floatstartX()Returns the value of thestartXrecord component.floatstartY()Returns the value of thestartYrecord component.floatstartZ()Returns the value of thestartZrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aLineRenderablerecord class.- Parameters:
startX- the value for thestartXrecord componentstartY- the value for thestartYrecord componentstartZ- the value for thestartZrecord componentendX- the value for theendXrecord componentendY- the value for theendYrecord componentendZ- the value for theendZrecord componentred- the value for theredrecord componentgreen- the value for thegreenrecord componentblue- the value for thebluerecord componentalpha- the value for thealpharecord componentcreationTime- the value for thecreationTimerecord componentduration- the value for thedurationrecord component
-
-
Method Details
-
render
public void render(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer) - Specified by:
renderin interfaceDebugRenderable
-
getCreationTimeMs
public long getCreationTimeMs()- Specified by:
getCreationTimeMsin interfaceDebugRenderable
-
getRenderDurationMs
public long getRenderDurationMs()- Specified by:
getRenderDurationMsin interfaceDebugRenderable
-
getRenderLayer
public net.minecraft.client.renderer.RenderType getRenderLayer()- Specified by:
getRenderLayerin interfaceDebugRenderable
-
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. -
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. -
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. All components in this record class are compared with '=='. -
startX
public float startX()Returns the value of thestartXrecord component.- Returns:
- the value of the
startXrecord component
-
startY
public float startY()Returns the value of thestartYrecord component.- Returns:
- the value of the
startYrecord component
-
startZ
public float startZ()Returns the value of thestartZrecord component.- Returns:
- the value of the
startZrecord component
-
endX
public float endX()Returns the value of theendXrecord component.- Returns:
- the value of the
endXrecord component
-
endY
public float endY()Returns the value of theendYrecord component.- Returns:
- the value of the
endYrecord component
-
endZ
public float endZ()Returns the value of theendZrecord component.- Returns:
- the value of the
endZrecord component
-
red
public int red()Returns the value of theredrecord component.- Returns:
- the value of the
redrecord component
-
green
public int green()Returns the value of thegreenrecord component.- Returns:
- the value of the
greenrecord component
-
blue
public int blue()Returns the value of thebluerecord component.- Returns:
- the value of the
bluerecord component
-
alpha
public int alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
creationTime
public long creationTime()Returns the value of thecreationTimerecord component.- Returns:
- the value of the
creationTimerecord component
-
duration
public long duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-