Record Class DrawableGizmoPrimitives.Group
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.gizmos.DrawableGizmoPrimitives.Group
- Enclosing class:
DrawableGizmoPrimitives
static record DrawableGizmoPrimitives.Group(boolean opaque, List<DrawableGizmoPrimitives.Line> lines, List<DrawableGizmoPrimitives.Quad> quads, List<DrawableGizmoPrimitives.TriangleFan> triangleFans, List<DrawableGizmoPrimitives.Text> texts, List<DrawableGizmoPrimitives.Point> points)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<DrawableGizmoPrimitives.Line> The field for thelinesrecord component.private final booleanThe field for theopaquerecord component.private final List<DrawableGizmoPrimitives.Point> The field for thepointsrecord component.private final List<DrawableGizmoPrimitives.Quad> The field for thequadsrecord component.private final List<DrawableGizmoPrimitives.Text> The field for thetextsrecord component.private final List<DrawableGizmoPrimitives.TriangleFan> The field for thetriangleFansrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGroup(boolean p_470643_) Group(boolean opaque, List<DrawableGizmoPrimitives.Line> lines, List<DrawableGizmoPrimitives.Quad> quads, List<DrawableGizmoPrimitives.TriangleFan> triangleFans, List<DrawableGizmoPrimitives.Text> texts, List<DrawableGizmoPrimitives.Point> points) Creates an instance of aGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lines()Returns the value of thelinesrecord component.booleanopaque()Returns the value of theopaquerecord component.points()Returns the value of thepointsrecord component.quads()Returns the value of thequadsrecord component.voidrender(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState, Matrix4f frustumMatrix) private voidrenderLines(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState, Matrix4f frustumMatrix) private voidrenderPoints(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState) private voidrenderQuads(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState) private voidrenderTexts(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState) private voidrenderTriangleFans(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState) texts()Returns the value of thetextsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetriangleFansrecord component.
-
Field Details
-
opaque
private final boolean opaqueThe field for theopaquerecord component. -
lines
The field for thelinesrecord component. -
quads
The field for thequadsrecord component. -
triangleFans
The field for thetriangleFansrecord component. -
texts
The field for thetextsrecord component. -
points
The field for thepointsrecord component.
-
-
Constructor Details
-
Group
Group(boolean p_470643_) -
Group
Group(boolean opaque, List<DrawableGizmoPrimitives.Line> lines, List<DrawableGizmoPrimitives.Quad> quads, List<DrawableGizmoPrimitives.TriangleFan> triangleFans, List<DrawableGizmoPrimitives.Text> texts, List<DrawableGizmoPrimitives.Point> points) Creates an instance of aGrouprecord class.- Parameters:
opaque- the value for theopaquerecord componentlines- the value for thelinesrecord componentquads- the value for thequadsrecord componenttriangleFans- the value for thetriangleFansrecord componenttexts- the value for thetextsrecord componentpoints- the value for thepointsrecord component
-
-
Method Details
-
render
public void render(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState, Matrix4f frustumMatrix) -
renderTexts
private void renderTexts(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState) -
renderLines
private void renderLines(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState, Matrix4f frustumMatrix) -
renderTriangleFans
private void renderTriangleFans(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState) -
renderQuads
private void renderQuads(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState) -
renderPoints
private void renderPoints(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState cameraRenderState) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
opaque
public boolean opaque()Returns the value of theopaquerecord component.- Returns:
- the value of the
opaquerecord component
-
lines
Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-
quads
Returns the value of thequadsrecord component.- Returns:
- the value of the
quadsrecord component
-
triangleFans
Returns the value of thetriangleFansrecord component.- Returns:
- the value of the
triangleFansrecord component
-
texts
Returns the value of thetextsrecord component.- Returns:
- the value of the
textsrecord component
-
points
Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-