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 interface
DebugRenderer.Renderer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DebugRenderer(MinecraftClient client)
-
Method Summary
Modifier and Type Method Description static void
drawBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha)
static void
drawBox(BlockPos pos, float expand, float red, float green, float blue, float alpha)
static void
drawBox(BlockPos pos1, BlockPos pos2, float red, float green, float blue, float alpha)
static void
drawBox(Box box, float red, float green, float blue, float alpha)
static void
drawString(String string, double x, double y, double z, int color)
static void
drawString(String string, double x, double y, double z, int color, float size)
static void
drawString(String string, double x, double y, double z, int color, float size, boolean center, float offset, boolean visibleThroughObjects)
static void
drawString(String string, int x, int y, int z, int color)
static Optional<Entity>
getTargetedEntity(Entity entity, int maxDistance)
void
render(MatrixStack matrices, VertexConsumerProvider.Immediate vertexConsumers, double cameraX, double cameraY, double cameraZ)
void
reset()
boolean
toggleShowChunkBorder()
-
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)
-