Class ScrollInput
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
com.simibubi.create.foundation.gui.widget.AbstractSimiWidget
com.simibubi.create.foundation.gui.widget.ScrollInput
- 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
- Direct Known Subclasses:
SelectionScrollInput
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Labelprotected intprotected intprotected final net.minecraft.network.chat.Componentprotected final net.minecraft.network.chat.Componentprotected intprotected intprotected net.minecraft.network.chat.ComponentFields inherited from class com.simibubi.create.foundation.gui.widget.AbstractSimiWidget
onClick, toolTip, wasHovered, zFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintgetState()booleanmouseScrolled(double mouseX, double mouseY, double delta) voidsetState(int state) titled(net.minecraft.network.chat.MutableComponent title) protected voidwithRange(int min, int max) withShiftStep(int step) protected voidMethods inherited from class com.simibubi.create.foundation.gui.widget.AbstractSimiWidget
afterRender, atZLevel, beforeRender, getToolTip, onClick, render, renderButton, runCallback, tick, updateNarration, withCallback, withCallbackMethods 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, wrapDefaultNarrationMessageMethods 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, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
changeFocus, charTyped, isMouseOver, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased
-
Field Details
-
onScroll
-
state
protected int state -
title
protected net.minecraft.network.chat.Component title -
scrollToModify
protected final net.minecraft.network.chat.Component scrollToModify -
shiftScrollsFaster
protected final net.minecraft.network.chat.Component shiftScrollsFaster -
displayLabel
-
min
protected int min -
max
protected int max -
shiftStep
protected int shiftStep
-
-
Constructor Details
-
ScrollInput
public ScrollInput(int xIn, int yIn, int widthIn, int heightIn)
-
-
Method Details
-
standardStep
-
withRange
-
calling
-
removeCallback
-
titled
-
withStepFunction
-
writingTo
-
getState
public int getState() -
setState
-
withShiftStep
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double delta) -
clampState
protected void clampState() -
onChanged
public void onChanged() -
writeToLabel
protected void writeToLabel() -
updateTooltip
protected void updateTooltip()
-