public class WidgetAmadronOffer extends net.minecraft.client.gui.widget.Widget implements ITooltipProvider
| Constructor and Description |
|---|
WidgetAmadronOffer(int x,
int y,
AmadronRecipe offer) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addTooltip(AmadronRecipe offer,
java.util.List<net.minecraft.util.text.ITextComponent> curTip,
int shoppingAmount) |
void |
addTooltip(double mouseX,
double mouseY,
java.util.List<net.minecraft.util.text.ITextComponent> curTip,
boolean shiftPressed) |
AmadronRecipe |
getOffer() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTick) |
WidgetAmadronOffer |
setAffordable(boolean canBuy) |
WidgetAmadronOffer |
setDrawBackground(boolean drawBackground) |
void |
setShoppingAmount(int amount) |
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseDragged, mouseReleased, narrate, onClick, 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, vLinepublic WidgetAmadronOffer(int x,
int y,
AmadronRecipe offer)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.widget.Widgetpublic boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in class net.minecraft.client.gui.widget.Widgetpublic void renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTick)
renderButton in class net.minecraft.client.gui.widget.Widgetpublic WidgetAmadronOffer setDrawBackground(boolean drawBackground)
public WidgetAmadronOffer setAffordable(boolean canBuy)
public void addTooltip(double mouseX,
double mouseY,
java.util.List<net.minecraft.util.text.ITextComponent> curTip,
boolean shiftPressed)
addTooltip in interface ITooltipProviderpublic AmadronRecipe getOffer()
public void setShoppingAmount(int amount)
public static void addTooltip(AmadronRecipe offer, java.util.List<net.minecraft.util.text.ITextComponent> curTip, int shoppingAmount)