public class ScrollInput extends AbstractSimiWidget
| Modifier and Type | Field and Description |
|---|---|
protected Label |
displayLabel |
protected int |
max |
protected int |
min |
protected java.util.function.Consumer<java.lang.Integer> |
onScroll |
protected net.minecraft.util.text.ITextComponent |
scrollToModify |
protected net.minecraft.util.text.ITextComponent |
shiftScrollsFaster |
protected int |
shiftStep |
protected int |
state |
protected net.minecraft.util.text.ITextComponent |
title |
onClick, toolTip, wasHovered, z| Constructor and Description |
|---|
ScrollInput(int xIn,
int yIn,
int widthIn,
int heightIn) |
| Modifier and Type | Method and Description |
|---|---|
ScrollInput |
calling(java.util.function.Consumer<java.lang.Integer> onScroll) |
protected void |
clampState() |
int |
getState() |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double delta) |
void |
onChanged() |
ScrollInput |
removeCallback() |
ScrollInput |
setState(int state) |
java.util.function.Function<ScrollValueBehaviour.StepContext,java.lang.Integer> |
standardStep() |
ScrollInput |
titled(net.minecraft.util.text.IFormattableTextComponent title) |
protected void |
updateTooltip() |
ScrollInput |
withRange(int min,
int max) |
ScrollInput |
withShiftStep(int step) |
ScrollInput |
withStepFunction(java.util.function.Function<ScrollValueBehaviour.StepContext,java.lang.Integer> step) |
protected void |
writeToLabel() |
ScrollInput |
writingTo(Label label) |
afterRender, atZLevel, beforeRender, clicked, getToolTip, onClick, render, renderButton, runCallback, tick, withCallback, withCallbackchangeFocus, clearFGColor, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineprotected java.util.function.Consumer<java.lang.Integer> onScroll
protected int state
protected net.minecraft.util.text.ITextComponent title
protected final net.minecraft.util.text.ITextComponent scrollToModify
protected final net.minecraft.util.text.ITextComponent shiftScrollsFaster
protected Label displayLabel
protected int min
protected int max
protected int shiftStep
public java.util.function.Function<ScrollValueBehaviour.StepContext,java.lang.Integer> standardStep()
public ScrollInput withRange(int min, int max)
public ScrollInput calling(java.util.function.Consumer<java.lang.Integer> onScroll)
public ScrollInput removeCallback()
public ScrollInput titled(net.minecraft.util.text.IFormattableTextComponent title)
public ScrollInput withStepFunction(java.util.function.Function<ScrollValueBehaviour.StepContext,java.lang.Integer> step)
public ScrollInput writingTo(Label label)
public int getState()
public ScrollInput setState(int state)
public ScrollInput withShiftStep(int step)
public boolean mouseScrolled(double mouseX,
double mouseY,
double delta)
protected void clampState()
public void onChanged()
protected void writeToLabel()
protected void updateTooltip()