use of dev.hypnotic.utils.render.QuadColor in project Hypnotic-Client by Hypnotic-Development.
the class NewChunks method onWorldRender.
@EventTarget
public void onWorldRender(EventRender3D event) {
int renderY = (int) (mc.world.getBottomY() + yOffset.getValue());
if (newChunksSet.isEnabled()) {
int color = this.color.getRGB();
QuadColor outlineColor = QuadColor.single(0xff000000 | color);
QuadColor fillColor = QuadColor.single(((int) (100) << 24) | color);
synchronized (newChunks) {
for (ChunkPos c : newChunks) {
if (mc.getCameraEntity().getBlockPos().isWithinDistance(c.getStartPos(), 1024)) {
Box box = new Box(c.getStartX(), renderY, c.getStartZ(), c.getStartX() + 16, renderY, c.getStartZ() + 16);
if (fill.isEnabled()) {
RenderUtils.drawBoxFill(box, fillColor, skipDirs);
}
RenderUtils.drawBoxOutline(box, outlineColor, 2f, skipDirs);
}
}
}
}
}
Aggregations