Class DrawableGizmoPrimitives
java.lang.Object
net.minecraft.client.renderer.gizmos.DrawableGizmoPrimitives
- All Implemented Interfaces:
GizmoPrimitives
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static final recordprivate static final recordprivate static final recordprivate static final recordprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final DrawableGizmoPrimitives.Groupprivate final DrawableGizmoPrimitives.Group -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidaddText(Vec3 pos, String text, TextGizmo.Style style) voidaddTriangleFan(Vec3[] points, int color) private DrawableGizmoPrimitives.GroupgetGroup(int color) booleanisEmpty()voidrender(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera, Matrix4f modelViewMatrix)
-
Field Details
-
opaque
-
translucent
-
isEmpty
private boolean isEmpty
-
-
Constructor Details
-
DrawableGizmoPrimitives
public DrawableGizmoPrimitives()
-
-
Method Details
-
getGroup
-
addPoint
- Specified by:
addPointin interfaceGizmoPrimitives
-
addLine
- Specified by:
addLinein interfaceGizmoPrimitives
-
addTriangleFan
- Specified by:
addTriangleFanin interfaceGizmoPrimitives
-
addQuad
-
addText
- Specified by:
addTextin interfaceGizmoPrimitives
-
render
public void render(PoseStack poseStack, MultiBufferSource bufferSource, CameraRenderState camera, Matrix4f modelViewMatrix) -
isEmpty
public boolean isEmpty()
-