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, tick
addButton, 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, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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()
AbstractShopScreen
sendBuyPacket
in class AbstractShopScreen
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float f)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
public boolean isPauseScreen()
isPauseScreen
in class AbstractShopScreen