public class WidgetVerticalScrollbar extends net.minecraft.client.gui.widget.Widget implements ICanRender3d
| Modifier and Type | Field and Description |
|---|---|
float |
currentScroll |
| Constructor and Description |
|---|
WidgetVerticalScrollbar(int x,
int y,
int height) |
| Modifier and Type | Method and Description |
|---|---|
int |
getState() |
boolean |
isDragging() |
boolean |
mouseScrolled(double x,
double y,
double dir) |
void |
onClick(double x,
double y) |
protected void |
onDrag(double x,
double y,
double dx,
double dy) |
void |
onRelease(double x,
double y) |
void |
render3d(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
float partialTicks) |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTick) |
WidgetVerticalScrollbar |
setCurrentState(int state) |
WidgetVerticalScrollbar |
setListening(boolean listening) |
WidgetVerticalScrollbar |
setStates(int states) |
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onFocusedChanged, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLinepublic WidgetVerticalScrollbar setStates(int states)
public WidgetVerticalScrollbar setCurrentState(int state)
public boolean mouseScrolled(double x,
double y,
double dir)
mouseScrolled in interface net.minecraft.client.gui.IGuiEventListenerpublic void onClick(double x,
double y)
onClick in class net.minecraft.client.gui.widget.Widgetpublic void onRelease(double x,
double y)
onRelease in class net.minecraft.client.gui.widget.Widgetprotected void onDrag(double x,
double y,
double dx,
double dy)
onDrag in class net.minecraft.client.gui.widget.Widgetpublic WidgetVerticalScrollbar setListening(boolean listening)
public int getState()
public void renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTick)
renderButton in class net.minecraft.client.gui.widget.Widgetpublic boolean isDragging()
public void render3d(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
float partialTicks)
render3d in interface ICanRender3d