public class CustomDropsScreen
extends net.minecraft.client.gui.screen.Screen
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomDropsScreen.Button |
static class |
CustomDropsScreen.ItemButton |
| Constructor and Description |
|---|
CustomDropsScreen(java.lang.String mnemonic,
boolean escapeCloses,
net.minecraft.util.text.ITextComponent title,
net.minecraft.item.ItemStack[] items,
net.minecraft.util.text.ITextComponent[] buttons) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button widget)
Called by the controls from the buttons when activated.
|
void |
init() |
boolean |
isPauseScreen()
Returns true if this GUI should pause the game when it is displayed in single-player
|
void |
onClose()
Closes the screen.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
boolean |
shouldCloseOnEsc() |
void |
tick()
Called from the main game loop to update the screen.
|
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, 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 CustomDropsScreen(java.lang.String mnemonic,
boolean escapeCloses,
net.minecraft.util.text.ITextComponent title,
net.minecraft.item.ItemStack[] items,
net.minecraft.util.text.ITextComponent[] buttons)
public void init()
init in class net.minecraft.client.gui.screen.Screenpublic void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class net.minecraft.client.gui.screen.Screenpublic boolean shouldCloseOnEsc()
shouldCloseOnEsc in class net.minecraft.client.gui.screen.Screenprotected void actionPerformed(net.minecraft.client.gui.widget.button.Button widget)
widget - public void onClose()
onClose in class net.minecraft.client.gui.screen.Screenpublic void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.Screenpublic boolean isPauseScreen()
isPauseScreen in class net.minecraft.client.gui.screen.Screen