Class RewardItemClient

java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.RewardItemClient
All Implemented Interfaces:
IRewardClient

public class RewardItemClient extends Object implements IRewardClient
  • Constructor Details

    • RewardItemClient

      public RewardItemClient(RewardItem rewardItem)
  • Method Details

    • createButton

      public AdvancedButton createButton(IInfoBook infoBook)
      Specified by:
      createButton in interface IRewardClient
      Parameters:
      infoBook - The infobook instance.
      Returns:
      Factory for a button for this reward.
    • drawElementInner

      public void drawElementInner(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my, AdvancedButton button)
      Description copied from interface: IRewardClient
      Draw the reward.
      Specified by:
      drawElementInner in interface IRewardClient
      Parameters:
      gui - The gui.
      guiGraphics - The gui graphics object.
      x - Start X.
      y - Start Y.
      width - Max width.
      height - Max height.
      page - Current page.
      mx - Mouse X.
      my - Mouse Y.
      button - The button of this reward.