Class DebugRenderer
java.lang.Object
net.minecraft.client.renderer.debug.DebugRenderer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate final List<DebugRenderer.SimpleDebugRenderer> private final List<DebugRenderer.SimpleDebugRenderer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTargetedEntity(Entity pEntity, int pDistance) private static Vec3mixColor(float pShift) voidvoidrender(PoseStack pPoseStack, Frustum pFrustum, MultiBufferSource.BufferSource pBufferSource, double pCamX, double pCamY, double pCamZ, boolean pTranslucent) static voidrenderFilledBox(PoseStack pPoseStack, MultiBufferSource pBufferSource, double pMinX, double pMinY, double pMinZ, double pMaxX, double pMaxY, double pMaxZ, float pRed, float pGreen, float pBlue, float pAlpha) static voidrenderFilledBox(PoseStack pPoseStack, MultiBufferSource pBufferSource, BlockPos pPos, float pScale, float pRed, float pGreen, float pBlue, float pAlpha) static voidrenderFilledBox(PoseStack pPoseStack, MultiBufferSource pBufferSource, BlockPos pStartPos, BlockPos pEndPos, float pRed, float pGreen, float pBlue, float pAlpha) static voidrenderFilledBox(PoseStack pPoseStack, MultiBufferSource pBufferSource, AABB pBoundingBox, float pRed, float pGreen, float pBlue, float pAlpha) static voidrenderFilledUnitCube(PoseStack pPoseStack, MultiBufferSource pBufferSource, BlockPos pPos, float pRed, float pGreen, float pBlue, float pAlpha) static voidrenderFloatingText(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, double pX, double pY, double pZ, int pColor) static voidrenderFloatingText(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, double pX, double pY, double pZ, int pColor, float pScale) static voidrenderFloatingText(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, double pX, double pY, double pZ, int pColor, float pScale, boolean pCenter, float pXOffset, boolean pTransparent) static voidrenderFloatingText(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, int pX, int pY, int pZ, int pColor) static voidrenderTextOverBlock(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, BlockPos pPos, int pLine, int pColor, float pScale) static voidrenderTextOverMob(PoseStack pPoseStack, MultiBufferSource pBufferSource, Entity pEntity, int pLine, String pText, int pColor, float pScale) static voidrenderVoxelShape(PoseStack pPoseStack, VertexConsumer pBuffer, VoxelShape pShape, double pX, double pY, double pZ, float pRed, float pGreen, float pBlue, float pAlpha, boolean pLowerColorVariance) private static Vec3shiftHue(float pRed, float pGreen, float pBlue, float pShift)
-
Field Details
-
opaqueRenderers
-
translucentRenderers
-
lastDebugEntriesVersion
private long lastDebugEntriesVersion
-
-
Constructor Details
-
DebugRenderer
public DebugRenderer()
-
-
Method Details
-
refreshRendererList
public void refreshRendererList() -
render
public void render(PoseStack pPoseStack, Frustum pFrustum, MultiBufferSource.BufferSource pBufferSource, double pCamX, double pCamY, double pCamZ, boolean pTranslucent) -
getTargetedEntity
-
renderFilledUnitCube
public static void renderFilledUnitCube(PoseStack pPoseStack, MultiBufferSource pBufferSource, BlockPos pPos, float pRed, float pGreen, float pBlue, float pAlpha) -
renderFilledBox
public static void renderFilledBox(PoseStack pPoseStack, MultiBufferSource pBufferSource, BlockPos pStartPos, BlockPos pEndPos, float pRed, float pGreen, float pBlue, float pAlpha) -
renderFilledBox
public static void renderFilledBox(PoseStack pPoseStack, MultiBufferSource pBufferSource, BlockPos pPos, float pScale, float pRed, float pGreen, float pBlue, float pAlpha) -
renderFilledBox
public static void renderFilledBox(PoseStack pPoseStack, MultiBufferSource pBufferSource, AABB pBoundingBox, float pRed, float pGreen, float pBlue, float pAlpha) -
renderFilledBox
public static void renderFilledBox(PoseStack pPoseStack, MultiBufferSource pBufferSource, double pMinX, double pMinY, double pMinZ, double pMaxX, double pMaxY, double pMaxZ, float pRed, float pGreen, float pBlue, float pAlpha) -
renderTextOverBlock
public static void renderTextOverBlock(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, BlockPos pPos, int pLine, int pColor, float pScale) -
renderTextOverMob
public static void renderTextOverMob(PoseStack pPoseStack, MultiBufferSource pBufferSource, Entity pEntity, int pLine, String pText, int pColor, float pScale) -
renderFloatingText
public static void renderFloatingText(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, int pX, int pY, int pZ, int pColor) -
renderFloatingText
public static void renderFloatingText(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, double pX, double pY, double pZ, int pColor) -
renderFloatingText
public static void renderFloatingText(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, double pX, double pY, double pZ, int pColor, float pScale) -
renderFloatingText
public static void renderFloatingText(PoseStack pPoseStack, MultiBufferSource pBufferSource, String pText, double pX, double pY, double pZ, int pColor, float pScale, boolean pCenter, float pXOffset, boolean pTransparent) -
mixColor
-
shiftHue
-
renderVoxelShape
public static void renderVoxelShape(PoseStack pPoseStack, VertexConsumer pBuffer, VoxelShape pShape, double pX, double pY, double pZ, float pRed, float pGreen, float pBlue, float pAlpha, boolean pLowerColorVariance)
-