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, 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 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.Screen
public void tick()
tick
in interface net.minecraft.client.gui.screen.IScreen
tick
in class net.minecraft.client.gui.screen.Screen
public boolean shouldCloseOnEsc()
shouldCloseOnEsc
in class net.minecraft.client.gui.screen.Screen
protected void actionPerformed(net.minecraft.client.gui.widget.button.Button widget)
widget
- public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen