@Environment(value=CLIENT) public class DebugRenderer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
DebugRenderer.Renderer |
Constructor and Description |
---|
DebugRenderer(MinecraftClient client) |
Modifier and Type | Method and Description |
---|---|
static void |
drawBox(BlockPos pos1,
BlockPos pos2,
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(Box box,
float red,
float green,
float blue,
float alpha) |
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 |
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() |
public final PathfindingDebugRenderer pathfindingDebugRenderer
public final DebugRenderer.Renderer waterDebugRenderer
public final DebugRenderer.Renderer chunkBorderDebugRenderer
public final DebugRenderer.Renderer heightmapDebugRenderer
public final DebugRenderer.Renderer collisionDebugRenderer
public final DebugRenderer.Renderer neighborUpdateDebugRenderer
public final CaveDebugRenderer caveDebugRenderer
public final StructureDebugRenderer structureDebugRenderer
public final DebugRenderer.Renderer skyLightDebugRenderer
public final DebugRenderer.Renderer worldGenAttemptDebugRenderer
public final DebugRenderer.Renderer blockOutlineDebugRenderer
public final DebugRenderer.Renderer chunkLoadingDebugRenderer
public final VillageDebugRenderer villageDebugRenderer
public final VillageSectionsDebugRenderer villageSectionsDebugRenderer
public final BeeDebugRenderer beeDebugRenderer
public final RaidCenterDebugRenderer raidCenterDebugRenderer
public final GoalSelectorDebugRenderer goalSelectorDebugRenderer
public final GameTestDebugRenderer gameTestDebugRenderer
private boolean showChunkBorder
public DebugRenderer(MinecraftClient client)
public void reset()
public boolean toggleShowChunkBorder()
public void render(MatrixStack matrices, VertexConsumerProvider.Immediate vertexConsumers, double cameraX, double cameraY, double cameraZ)
public static Optional<Entity> getTargetedEntity(@Nullable Entity entity, int maxDistance)
public static void drawBox(BlockPos pos1, BlockPos pos2, float red, float green, float blue, float alpha)
public static void drawBox(BlockPos pos, float expand, float red, float green, float blue, float alpha)
public static void drawBox(Box box, float red, float green, float blue, float alpha)
public static void drawBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha)
public static void drawString(String string, int x, int y, int z, int color)
public static void drawString(String string, double x, double y, double z, int color)
public static void drawString(String string, double x, double y, double z, int color, float size)
public static void drawString(String string, double x, double y, double z, int color, float size, boolean center, float offset, boolean visibleThroughObjects)