use of com.lowdragmc.lowdraglib.utils.BlockPosFace in project Multiblocked by Low-Drag-MC.
the class IOPageWidget method setupSceneWidget.
@OnlyIn(Dist.CLIENT)
private void setupSceneWidget(SceneWidget sceneWidget) {
sceneWidget.getRenderer().setAfterWorldRender(renderer -> {
sceneWidget.renderBlockOverLay(renderer);
RenderUtils.useLightMap(240, 240, () -> {
RenderSystem.disableCull();
int inner = 0;
for (Map.Entry<MultiblockCapability<?>, Tuple<IO, Direction>> entry : capabilitySettings.entrySet()) {
if (entry.getValue() != null) {
sceneWidget.drawFacingBorder(new MatrixStack(), new BlockPosFace(pos, entry.getValue().getB()), entry.getKey().color, inner);
inner++;
}
}
RenderSystem.enableCull();
});
});
}
Aggregations