@Override protected void addConduitQuads(@Nonnull IConduitBundle bundle, @Nonnull IClientConduit conduit, @Nonnull IConduitTexture tex, @Nonnull CollidableComponent component, float selfIllum, BlockRenderLayer layer, @Nonnull List<BakedQuad> quads) { if (IOCConduit.COLOR_CONTROLLER_ID.equals(component.data)) { if (conduit.containsExternalConnection(component.getDirection())) { int c = ((IOCConduit) conduit).getSignalColor(component.getDirection()).getColor(); BakedQuadBuilder.addBakedQuads(quads, component.bound, White.INSTANCE, ColorUtil.toFloat4(c)); } } else { super.addConduitQuads(bundle, conduit, tex, component, selfIllum, layer, quads); } }
private static void addColorBand(@Nonnull IClientConduit conduit, @Nonnull CollidableComponent component, @Nonnull List<BakedQuad> quads, @Nonnull EnumFacing dir, @Nonnull ConnectionMode mode) { if (IPowerConduit.COLOR_CONTROLLER_ID.equals(component.data) && (conduit instanceof IExtractor)) { IExtractor pc = (IExtractor) conduit; final RedstoneControlMode extractionRedstoneMode = pc.getExtractionRedstoneMode(dir); if (extractionRedstoneMode != RedstoneControlMode.IGNORE && extractionRedstoneMode != RedstoneControlMode.NEVER && mode.acceptsInput()) { int cInt = pc.getExtractionSignalColor(dir).getColor(); BoundingBox bound = component.bound; if (mode != ConnectionMode.NOT_SET) { Vector3d trans = ForgeDirectionOffsets.offsetScaled(dir, -0.12); bound = trans != null ? bound.translate(trans) : bound; } for (EnumFacing face : EnumFacing.VALUES) { if (face != null && face != dir) { BakedQuadBuilder.addBakedQuadForFace(quads, bound, White.INSTANCE, face, ConduitTexture.FULL, false, false, ColorUtil.toFloat4(cInt)); } } } } }
if (mode.acceptsOutput()) { geometry.addModeConnectorQuads(dir, offset, ICON_INOUT_IN.get(TextureAtlasSprite.class), ColorUtil.toFloat4(inChannel.getColor()), quads); geometry.addModeConnectorQuads(dir, offset, ICON_INOUT_OUT.get(TextureAtlasSprite.class), ColorUtil.toFloat4(outChannel.getColor()), quads); } else { geometry.addModeConnectorQuads(dir, offset, ICON_IN.get(TextureAtlasSprite.class), ColorUtil.toFloat4(inChannel.getColor()), quads); geometry.addModeConnectorQuads(dir, offset, ICON_OUT.get(TextureAtlasSprite.class), ColorUtil.toFloat4(outChannel.getColor()), quads);
final int drawHeight = this.slotHeight - margin; final Vector4f col = ColorUtil.toFloat4(8421504); final Vector4f colBlack = ColorUtil.toFloat4(0); final Vector4f colBorder = ColorUtil.toFloat4(0xFF000000); renderer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR); renderer.pos(this.minX, this.minY + margin, 0.0D).color(colBlack.x, colBlack.y, colBlack.z, colBlack.w).tex(0.0D, 1.0D).endVertex();
final Vector4f col = ColorUtil.toFloat4(0xFF000000);