Class DrawableGizmoPrimitives
java.lang.Object
net.minecraft.client.renderer.gizmos.DrawableGizmoPrimitives
- All Implemented Interfaces:
GizmoPrimitives
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record(package private) static final record(package private) static final record(package private) static final record(package private) static final record(package private) static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final DrawableGizmoPrimitives.Groupprivate final DrawableGizmoPrimitives.Group -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidaddText(Vec3 p_455439_, String p_455651_, TextGizmo.Style p_455425_) voidaddTriangleFan(Vec3[] p_456174_, int p_456047_) private DrawableGizmoPrimitives.GroupgetGroup(int pColor) booleanisEmpty()voidrender(PoseStack pPoseStack, MultiBufferSource pBufferSource, CameraRenderState pCameraRenderState, Matrix4f pFrustumMatrix)
-
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
- Specified by:
addQuadin interfaceGizmoPrimitives
-
addText
- Specified by:
addTextin interfaceGizmoPrimitives
-
render
public void render(PoseStack pPoseStack, MultiBufferSource pBufferSource, CameraRenderState pCameraRenderState, Matrix4f pFrustumMatrix) -
isEmpty
public boolean isEmpty()
-