java.lang.Object
me.desht.pneumaticcraft.common.thirdparty.patchouli.ComponentFluid
All Implemented Interfaces:
vazkii.patchouli.api.ICustomComponent, vazkii.patchouli.api.IVariablesAvailableCallback

public class ComponentFluid extends Object implements vazkii.patchouli.api.ICustomComponent
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    vazkii.patchouli.api.IVariable
     
    vazkii.patchouli.api.IVariable
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    build(int componentX, int componentY, int pageNum)
    Called when this component is built, after variables have been resolved with IVariablesAvailableCallback.onVariablesAvailable(java.util.function.UnaryOperator<vazkii.patchouli.api.IVariable>).
    void
    onVariablesAvailable(UnaryOperator<vazkii.patchouli.api.IVariable> lookup)
    Called when variables are available, before the template component is built
    void
    render(net.minecraft.client.gui.GuiGraphics graphics, vazkii.patchouli.api.IComponentRenderContext ctx, float pticks, int mouseX, int mouseY)
    Called every render tick.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface vazkii.patchouli.api.ICustomComponent

    mouseClicked, onDisplayed
  • Field Details

    • fluid

      public vazkii.patchouli.api.IVariable fluid
    • scale

      public vazkii.patchouli.api.IVariable scale
  • Constructor Details

    • ComponentFluid

      public ComponentFluid()
  • Method Details

    • build

      public void build(int componentX, int componentY, int pageNum)
      Description copied from interface: vazkii.patchouli.api.ICustomComponent
      Called when this component is built, after variables have been resolved with IVariablesAvailableCallback.onVariablesAvailable(java.util.function.UnaryOperator<vazkii.patchouli.api.IVariable>). Take the chance to parse String variables into game objects, perform error checking, and setup any local positions here.
      Specified by:
      build in interface vazkii.patchouli.api.ICustomComponent
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, vazkii.patchouli.api.IComponentRenderContext ctx, float pticks, int mouseX, int mouseY)
      Description copied from interface: vazkii.patchouli.api.ICustomComponent
      Called every render tick. No special transformations are applied, so you're responsible for putting everything in the right place.
      Specified by:
      render in interface vazkii.patchouli.api.ICustomComponent
    • onVariablesAvailable

      public void onVariablesAvailable(UnaryOperator<vazkii.patchouli.api.IVariable> lookup)
      Description copied from interface: vazkii.patchouli.api.IVariablesAvailableCallback
      Called when variables are available, before the template component is built
      Specified by:
      onVariablesAvailable in interface vazkii.patchouli.api.IVariablesAvailableCallback
      Parameters:
      lookup - Call with arbitrary text, and it will be expanded: first expanding all inline variables, then attempting to apply "->" derivations if possible, otherwise looking up the string as a plain variable from the template environment
      Gracefully handles nulls given as input, but will never return null itself.