Class SelectionScrollInput

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
All Implemented Interfaces:
TickableGuiEventListener, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Widget, net.minecraft.client.gui.narration.NarratableEntry, net.minecraft.client.gui.narration.NarrationSupplier

public class SelectionScrollInput extends ScrollInput
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected List<net.minecraft.network.chat.Component>
     

    Fields inherited from class com.simibubi.create.foundation.gui.widget.ScrollInput

    displayLabel, max, min, onScroll, scrollToModify, shiftScrollsFaster, shiftStep, state, title

    Fields inherited from class com.simibubi.create.foundation.gui.widget.AbstractSimiWidget

    onClick, toolTip, wasHovered, z

    Fields inherited from class net.minecraft.client.gui.components.AbstractWidget

    active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    SelectionScrollInput(int xIn, int yIn, int widthIn, int heightIn)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    forOptions(List<net.minecraft.network.chat.Component> options)
     
    boolean
    mouseScrolled(double mouseX, double mouseY, double delta)
     
    protected void
     
    protected void
     

    Methods inherited from class com.simibubi.create.foundation.gui.widget.ScrollInput

    calling, clampState, getState, onChanged, removeCallback, setState, standardStep, titled, withRange, withShiftStep, withStepFunction, writingTo

    Methods inherited from class com.simibubi.create.foundation.gui.widget.AbstractSimiWidget

    afterRender, atZLevel, beforeRender, getToolTip, onClick, render, renderButton, runCallback, tick, updateNarration, withCallback, withCallback

    Methods inherited from class net.minecraft.client.gui.components.AbstractWidget

    changeFocus, clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getYImage, isActive, isFocused, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onDrag, onFocusedChanged, onRelease, playDownSound, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth, wrapDefaultNarrationMessage

    Methods inherited from class net.minecraft.client.gui.GuiComponent

    blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    changeFocus, charTyped, isMouseOver, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased
  • Field Details

    • options

      protected List<net.minecraft.network.chat.Component> options
  • Constructor Details

    • SelectionScrollInput

      public SelectionScrollInput(int xIn, int yIn, int widthIn, int heightIn)
  • Method Details

    • forOptions

      public ScrollInput forOptions(List<net.minecraft.network.chat.Component> options)
    • writeToLabel

      protected void writeToLabel()
      Overrides:
      writeToLabel in class ScrollInput
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double delta)
      Specified by:
      mouseScrolled in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseScrolled in class ScrollInput
    • updateTooltip

      protected void updateTooltip()
      Overrides:
      updateTooltip in class ScrollInput