public class ShopkeeperScreen extends AbstractShopScreen
| Modifier and Type | Field and Description |
|---|---|
static ShopkeeperChat |
chat
The shopkeeper's dialogue.
|
static java.lang.String |
name
The shopkeeper's name.
|
allowMultiple, buyItems, buyStartIndex, floatQuantity, quantity, selectedItem, sellItems, sellStartIndex| Constructor and Description |
|---|
ShopkeeperScreen(int trainerId)
Displays the shopkeeper GUI.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
charTyped(char key,
int keyCode) |
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) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int state) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double delta) |
void |
onClose()
Closes the shop screen.
|
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.
|
protected void |
sendSellPacket()
Sends a packet to the server when selling an item.
|
clickBuyMiniScreen, clickBuyScreen, isBuyMiniScreenVisible, renderBackground, renderBackground, renderBuyScreen, renderDirtBackground, renderMenu, 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 static java.lang.String name
public static ShopkeeperChat chat
public ShopkeeperScreen(int trainerId)
trainerId - The ID of the shopkeeper being interacted with.public boolean mouseScrolled(double mouseX,
double mouseY,
double delta)
mouseScrolled in interface net.minecraft.client.gui.IGuiEventListenermouseScrolled in interface net.minecraft.client.gui.INestedGuiEventHandlermouseScrolled in class AbstractShopScreenpublic boolean charTyped(char key,
int keyCode)
public boolean mouseClicked(double mouseX,
double mouseY,
int mouseButton)
public boolean mouseReleased(double mouseX,
double mouseY,
int state)
public void onClose()
AbstractShopScreenonClose in class AbstractShopScreenprotected void sendBuyPacket()
AbstractShopScreensendBuyPacket in class AbstractShopScreenprotected void sendSellPacket()
AbstractShopScreensendSellPacket 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