Class DebugRenderer
java.lang.Object
net.minecraft.client.render.debug.DebugRenderer
@Environment(CLIENT) public class DebugRenderer extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDebugRenderer.Renderer -
Field Summary
-
Constructor Summary
Constructors Constructor Description DebugRenderer(MinecraftClient client) -
Method Summary
Modifier and Type Method Description static voiddrawBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha)static voiddrawBox(BlockPos pos, float expand, float red, float green, float blue, float alpha)static voiddrawBox(BlockPos pos1, BlockPos pos2, float red, float green, float blue, float alpha)static voiddrawBox(Box box, float red, float green, float blue, float alpha)static voiddrawString(String string, double x, double y, double z, int color)static voiddrawString(String string, double x, double y, double z, int color, float size)static voiddrawString(String string, double x, double y, double z, int color, float size, boolean center, float offset, boolean visibleThroughObjects)static voiddrawString(String string, int x, int y, int z, int color)static Optional<Entity>getTargetedEntity(Entity entity, int maxDistance)voidrender(MatrixStack matrices, VertexConsumerProvider.Immediate vertexConsumers, double cameraX, double cameraY, double cameraZ)voidreset()booleantoggleShowChunkBorder()
-
Field Details
-
pathfindingDebugRenderer
-
waterDebugRenderer
-
chunkBorderDebugRenderer
-
heightmapDebugRenderer
-
collisionDebugRenderer
-
neighborUpdateDebugRenderer
-
caveDebugRenderer
-
structureDebugRenderer
-
skyLightDebugRenderer
-
worldGenAttemptDebugRenderer
-
blockOutlineDebugRenderer
-
chunkLoadingDebugRenderer
-
villageDebugRenderer
-
villageSectionsDebugRenderer
-
beeDebugRenderer
-
raidCenterDebugRenderer
-
goalSelectorDebugRenderer
-
gameTestDebugRenderer
-
field_28254
-
showChunkBorder
private boolean showChunkBorder
-
-
Constructor Details
-
DebugRenderer
-
-
Method Details
-
reset
public void reset() -
toggleShowChunkBorder
public boolean toggleShowChunkBorder() -
render
public void render(MatrixStack matrices, VertexConsumerProvider.Immediate vertexConsumers, double cameraX, double cameraY, double cameraZ) -
getTargetedEntity
-
drawBox
-
drawBox
public static void drawBox(BlockPos pos, float expand, float red, float green, float blue, float alpha) -
drawBox
-
drawBox
public static void drawBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha) -
drawString
-
drawString
-
drawString
-
drawString
public static void drawString(String string, double x, double y, double z, int color, float size, boolean center, float offset, boolean visibleThroughObjects)
-