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 entity, int distance) private static Vec3mixColor(float shift) voidvoidrender(PoseStack poseStack, Frustum frustum, MultiBufferSource.BufferSource bufferSource, double camX, double camY, double camZ, boolean translucent) static voidrenderFilledBox(PoseStack poseStack, MultiBufferSource bufferSource, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha) static voidrenderFilledBox(PoseStack poseStack, MultiBufferSource bufferSource, BlockPos pos, float scale, float red, float green, float blue, float alpha) static voidrenderFilledBox(PoseStack poseStack, MultiBufferSource bufferSource, BlockPos startPos, BlockPos endPos, float red, float green, float blue, float alpha) static voidrenderFilledBox(PoseStack poseStack, MultiBufferSource bufferSource, AABB boundingBox, float red, float green, float blue, float alpha) static voidrenderFilledUnitCube(PoseStack poseStack, MultiBufferSource bufferSource, BlockPos pos, float red, float green, float blue, float alpha) static voidrenderFloatingText(PoseStack poseStack, MultiBufferSource bufferSource, String text, double x, double y, double z, int color) static voidrenderFloatingText(PoseStack poseStack, MultiBufferSource bufferSource, String text, double x, double y, double z, int color, float scale) static voidrenderFloatingText(PoseStack poseStack, MultiBufferSource bufferSource, String text, double x, double y, double z, int color, float scale, boolean center, float xOffset, boolean transparent) static voidrenderFloatingText(PoseStack poseStack, MultiBufferSource bufferSource, String text, int x, int y, int z, int color) static voidrenderTextOverBlock(PoseStack poseStack, MultiBufferSource bufferSource, String text, BlockPos pos, int line, int color, float scale) static voidrenderTextOverMob(PoseStack poseStack, MultiBufferSource bufferSource, Entity entity, int line, String text, int color, float scale) static voidrenderVoxelShape(PoseStack poseStack, VertexConsumer buffer, VoxelShape shape, double x, double y, double z, float red, float green, float blue, float alpha, boolean lowerColorVariance) private static Vec3shiftHue(float red, float green, float blue, float shift)
-
Field Details
-
opaqueRenderers
-
translucentRenderers
-
lastDebugEntriesVersion
private long lastDebugEntriesVersion
-
-
Constructor Details
-
DebugRenderer
public DebugRenderer()
-
-
Method Details
-
refreshRendererList
public void refreshRendererList() -
render
public void render(PoseStack poseStack, Frustum frustum, MultiBufferSource.BufferSource bufferSource, double camX, double camY, double camZ, boolean translucent) -
getTargetedEntity
-
renderFilledUnitCube
public static void renderFilledUnitCube(PoseStack poseStack, MultiBufferSource bufferSource, BlockPos pos, float red, float green, float blue, float alpha) -
renderFilledBox
public static void renderFilledBox(PoseStack poseStack, MultiBufferSource bufferSource, BlockPos startPos, BlockPos endPos, float red, float green, float blue, float alpha) -
renderFilledBox
public static void renderFilledBox(PoseStack poseStack, MultiBufferSource bufferSource, BlockPos pos, float scale, float red, float green, float blue, float alpha) -
renderFilledBox
public static void renderFilledBox(PoseStack poseStack, MultiBufferSource bufferSource, AABB boundingBox, float red, float green, float blue, float alpha) -
renderFilledBox
public static void renderFilledBox(PoseStack poseStack, MultiBufferSource bufferSource, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha) -
renderTextOverBlock
public static void renderTextOverBlock(PoseStack poseStack, MultiBufferSource bufferSource, String text, BlockPos pos, int line, int color, float scale) -
renderTextOverMob
public static void renderTextOverMob(PoseStack poseStack, MultiBufferSource bufferSource, Entity entity, int line, String text, int color, float scale) -
renderFloatingText
public static void renderFloatingText(PoseStack poseStack, MultiBufferSource bufferSource, String text, int x, int y, int z, int color) -
renderFloatingText
public static void renderFloatingText(PoseStack poseStack, MultiBufferSource bufferSource, String text, double x, double y, double z, int color) -
renderFloatingText
public static void renderFloatingText(PoseStack poseStack, MultiBufferSource bufferSource, String text, double x, double y, double z, int color, float scale) -
renderFloatingText
public static void renderFloatingText(PoseStack poseStack, MultiBufferSource bufferSource, String text, double x, double y, double z, int color, float scale, boolean center, float xOffset, boolean transparent) -
mixColor
-
shiftHue
-
renderVoxelShape
public static void renderVoxelShape(PoseStack poseStack, VertexConsumer buffer, VoxelShape shape, double x, double y, double z, float red, float green, float blue, float alpha, boolean lowerColorVariance)
-