Class LeashFeatureRenderer
java.lang.Object
net.minecraft.client.renderer.feature.LeashFeatureRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddVertexPair(VertexConsumer pConsumer, Matrix4f pPose, float pStartX, float pStartY, float pStartZ, float pYOffset, float pDx, float pDz, int pIndex, boolean pReverse, EntityRenderState.LeashState pLeashState) voidrender(SubmitNodeCollection pNodeCollection, MultiBufferSource.BufferSource pBufferSource) private static voidrenderLeash(Matrix4f pPose, MultiBufferSource pBufferSource, EntityRenderState.LeashState pLeashState)
-
Field Details
-
LEASH_RENDER_STEPS
private static final int LEASH_RENDER_STEPS- See Also:
-
LEASH_WIDTH
private static final float LEASH_WIDTH- See Also:
-
-
Constructor Details
-
LeashFeatureRenderer
public LeashFeatureRenderer()
-
-
Method Details
-
render
public void render(SubmitNodeCollection pNodeCollection, MultiBufferSource.BufferSource pBufferSource) -
renderLeash
private static void renderLeash(Matrix4f pPose, MultiBufferSource pBufferSource, EntityRenderState.LeashState pLeashState) -
addVertexPair
private static void addVertexPair(VertexConsumer pConsumer, Matrix4f pPose, float pStartX, float pStartY, float pStartZ, float pYOffset, float pDx, float pDz, int pIndex, boolean pReverse, EntityRenderState.LeashState pLeashState)
-