public class VendingMachineScreen extends AbstractShopScreen
allowMultiple, buyItems, buyStartIndex, floatQuantity, quantity, selectedItem, sellItems, sellStartIndex| Constructor and Description |
|---|
VendingMachineScreen(net.minecraft.util.math.BlockPos pos)
Displays the vending machine GUI.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPauseScreen()
Returns true if this GUI should pause the game when it is displayed in single-player
|
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float f) |
protected void |
sendBuyPacket()
Sends a packet to the server when buying an item.
|
clickBuyMiniScreen, clickBuyScreen, isBuyMiniScreenVisible, mouseScrolled, onClose, renderBackground, renderBackground, renderBuyScreen, renderDirtBackground, renderMenu, sendSellPacket, tickaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, removed, renderComponentHoverEffect, renderComponentTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic VendingMachineScreen(net.minecraft.util.math.BlockPos pos)
pos - The location of the vending machine being interacted with.public boolean mouseClicked(double mouseX,
double mouseY,
int mouseButton)
protected void sendBuyPacket()
AbstractShopScreensendBuyPacket in class AbstractShopScreenpublic void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float f)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.Screenpublic boolean isPauseScreen()
isPauseScreen in class AbstractShopScreen