Record Class DrawableGizmoPrimitives.Group
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.gizmos.DrawableGizmoPrimitives.Group
- Enclosing class:
DrawableGizmoPrimitives
private 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
ConstructorsModifierConstructorDescriptionprivateGroup(boolean opaque) privateGroup(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 camera, Matrix4f modelViewMatrix) private voidrenderLines(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera, Matrix4f modelViewMatrix) private voidrenderPoints(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera) private voidrenderQuads(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera) private voidrenderTexts(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera) private voidrenderTriangleFans(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera) 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
private Group(boolean opaque) -
Group
private 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 camera, Matrix4f modelViewMatrix) -
renderTexts
private void renderTexts(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera) -
renderLines
private void renderLines(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera, Matrix4f modelViewMatrix) -
renderTriangleFans
private void renderTriangleFans(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera) -
renderQuads
private void renderQuads(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera) -
renderPoints
private void renderPoints(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera) -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-