java.lang.Object
me.desht.pneumaticcraft.api.client.pneumatic_helmet.IOptionPage.SimpleOptionPage<T>
me.desht.pneumaticcraft.client.gui.pneumatic_armor.options.AbstractSliderOptions<T>
All Implemented Interfaces:
IOptionPage
Direct Known Subclasses:
JetBootsOptions, JumpBoostOptions, SpeedBoostOptions

public abstract class AbstractSliderOptions<T extends IArmorUpgradeClientHandler<?>> extends IOptionPage.SimpleOptionPage<T>
  • Method Details

    • getSliderPos

      protected PointXY getSliderPos()
    • getRange

      protected org.apache.commons.lang3.tuple.Pair<Integer,Integer> getRange()
    • getTagName

      protected abstract String getTagName()
      The NBT tag on the armor item under which this slider value should be saved. The item used is determined by getSlot().
    • getPrefix

      protected abstract net.minecraft.network.chat.Component getPrefix()
    • getSuffix

      protected abstract net.minecraft.network.chat.Component getSuffix()
    • populateGui

      public void populateGui(IGuiScreen gui)
      Description copied from interface: IOptionPage
      Here you can initialize your buttons and stuff like with a Screen.
      Specified by:
      populateGui in interface IOptionPage
      Overrides:
      populateGui in class IOptionPage.SimpleOptionPage<T extends IArmorUpgradeClientHandler<?>>
      Parameters:
      gui - the holding GUI
    • tick

      public void tick()
      Description copied from interface: IOptionPage
      Called immediately after Screen.tick()