public class ProgressWidget
extends net.minecraft.client.gui.widget.Widget
Modifier and Type | Field and Description |
---|---|
net.minecraft.util.ResourceLocation |
texture |
Constructor and Description |
---|
ProgressWidget(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation texture,
java.util.function.Supplier<java.lang.Float> progress) |
Modifier and Type | Method and Description |
---|---|
static ProgressWidget |
createBasicArrow(int x,
int y,
int width,
int height,
java.util.function.Supplier<java.lang.Float> progress) |
void |
playDownSound(net.minecraft.client.audio.SoundHandler handler) |
void |
renderButton(int mouseX,
int mouseY,
float partialTicks) |
changeFocus, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLine
public ProgressWidget(int x, int y, int width, int height, net.minecraft.util.ResourceLocation texture, java.util.function.Supplier<java.lang.Float> progress)
public void renderButton(int mouseX, int mouseY, float partialTicks)
renderButton
in class net.minecraft.client.gui.widget.Widget
public void playDownSound(net.minecraft.client.audio.SoundHandler handler)
playDownSound
in class net.minecraft.client.gui.widget.Widget
public static ProgressWidget createBasicArrow(int x, int y, int width, int height, java.util.function.Supplier<java.lang.Float> progress)