Class TerraPlateComponent

java.lang.Object
vazkii.botania.client.patchouli.component.TerraPlateComponent
All Implemented Interfaces:
vazkii.patchouli.api.ICustomComponent, vazkii.patchouli.api.IVariablesAvailableCallback

public class TerraPlateComponent extends Object implements vazkii.patchouli.api.ICustomComponent
Patchouli custom component that draws provided stacks arranged like the Terrestial Agglomeration Plate multiblock. Size is 43 x 31. Parameters: corner, center, edge, plate can be provided to override default blocks.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    vazkii.patchouli.api.IVariable
     
    vazkii.patchouli.api.IVariable
     
    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)
     
    void
    onVariablesAvailable(UnaryOperator<vazkii.patchouli.api.IVariable> lookup, net.minecraft.core.HolderLookup.Provider registries)
     
    void
    render(net.minecraft.client.gui.GuiGraphics gui, vazkii.patchouli.api.IComponentRenderContext context, float pticks, int mouseX, int mouseY)
     

    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

    • corner

      public vazkii.patchouli.api.IVariable corner
    • center

      public vazkii.patchouli.api.IVariable center
    • edge

      public vazkii.patchouli.api.IVariable edge
    • plate

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

    • TerraPlateComponent

      public TerraPlateComponent()
  • Method Details

    • build

      public void build(int componentX, int componentY, int pageNum)
      Specified by:
      build in interface vazkii.patchouli.api.ICustomComponent
    • render

      public void render(net.minecraft.client.gui.GuiGraphics gui, vazkii.patchouli.api.IComponentRenderContext context, float pticks, int mouseX, int mouseY)
      Specified by:
      render in interface vazkii.patchouli.api.ICustomComponent
    • onVariablesAvailable

      public void onVariablesAvailable(UnaryOperator<vazkii.patchouli.api.IVariable> lookup, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      onVariablesAvailable in interface vazkii.patchouli.api.IVariablesAvailableCallback