Search in sources :

Example 1 with CyaniteReprocessorContainer

use of net.roguelogix.biggerreactors.machine.containers.CyaniteReprocessorContainer in project BiggerReactors by BiggerSeries.

the class CyaniteReprocessorScreen method initSymbols.

/**
 * Initialize symbols.
 */
public void initSymbols() {
    // (Right) Water tank symbol:
    RenderedElement<CyaniteReprocessorContainer> waterTankSymbol = new RenderedElement<>(this, 152, 6, 16, 16, 48, 175, new TranslatableComponent("screen.biggerreactors.cyanite_reprocessor.water_tank.tooltip"));
    waterTankSymbol.onRender = (@Nonnull PoseStack mS, int mX, int mY) -> RenderHelper.drawMaskedFluid(mS, waterTankSymbol.x, waterTankSymbol.y, this.getBlitOffset(), waterTankSymbol.width, waterTankSymbol.height, waterTankSymbol.u, waterTankSymbol.v, Fluids.WATER.getSource());
    this.addScreenElement(waterTankSymbol);
}
Also used : TranslatableComponent(net.minecraft.network.chat.TranslatableComponent) PoseStack(com.mojang.blaze3d.vertex.PoseStack) CyaniteReprocessorContainer(net.roguelogix.biggerreactors.machine.containers.CyaniteReprocessorContainer) Nonnull(javax.annotation.Nonnull) RenderedElement(net.roguelogix.phosphophyllite.client.gui.elements.RenderedElement)

Aggregations

PoseStack (com.mojang.blaze3d.vertex.PoseStack)1 Nonnull (javax.annotation.Nonnull)1 TranslatableComponent (net.minecraft.network.chat.TranslatableComponent)1 CyaniteReprocessorContainer (net.roguelogix.biggerreactors.machine.containers.CyaniteReprocessorContainer)1 RenderedElement (net.roguelogix.phosphophyllite.client.gui.elements.RenderedElement)1