public abstract class Screen extends FocusableGui implements IRenderable
Modifier and Type | Field and Description |
---|---|
private static java.util.Set<java.lang.String> |
ALLOWED_PROTOCOLS |
protected java.util.List<Widget> |
buttons |
protected java.util.List<IGuiEventListener> |
children |
private java.net.URI |
clickedLink |
protected FontRenderer |
font |
int |
height |
protected ItemRenderer |
itemRenderer |
private static org.apache.logging.log4j.Logger |
LOGGER |
protected Minecraft |
minecraft |
boolean |
passEvents |
protected ITextComponent |
title |
int |
width |
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Modifier | Constructor and Description |
---|---|
protected |
Screen(ITextComponent titleIn) |
Modifier and Type | Method and Description |
---|---|
protected <T extends Widget> |
addButton(T p_addButton_1_) |
java.util.List<? extends IGuiEventListener> |
children() |
private void |
confirmLink(boolean p_confirmLink_1_) |
Minecraft |
getMinecraft() |
java.lang.String |
getNarrationMessage() |
ITextComponent |
getTitle() |
java.util.List<java.lang.String> |
getTooltipFromItem(ItemStack p_getTooltipFromItem_1_) |
boolean |
handleComponentClicked(ITextComponent p_handleComponentClicked_1_) |
static boolean |
hasAltDown() |
static boolean |
hasControlDown() |
static boolean |
hasShiftDown() |
protected void |
init() |
void |
init(Minecraft p_init_1_,
int p_init_2_,
int p_init_3_) |
protected void |
insertText(java.lang.String p_insertText_1_,
boolean p_insertText_2_) |
static boolean |
isCopy(int p_isCopy_0_) |
static boolean |
isCut(int p_isCut_0_) |
boolean |
isMouseOver(double p_isMouseOver_1_,
double p_isMouseOver_3_) |
static boolean |
isPaste(int p_isPaste_0_) |
boolean |
isPauseScreen() |
static boolean |
isSelectAll(int p_isSelectAll_0_) |
protected boolean |
isValidCharacterForName(java.lang.String p_isValidCharacterForName_1_,
char p_isValidCharacterForName_2_,
int p_isValidCharacterForName_3_) |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
void |
onClose() |
private void |
openLink(java.net.URI p_openLink_1_) |
void |
removed() |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
void |
renderBackground() |
void |
renderBackground(int p_renderBackground_1_) |
protected void |
renderComponentHoverEffect(ITextComponent p_renderComponentHoverEffect_1_,
int p_renderComponentHoverEffect_2_,
int p_renderComponentHoverEffect_3_) |
void |
renderDirtBackground(int p_renderDirtBackground_1_) |
protected void |
renderTooltip(ItemStack p_renderTooltip_1_,
int p_renderTooltip_2_,
int p_renderTooltip_3_) |
void |
renderTooltip(java.util.List<java.lang.String> p_renderTooltip_1_,
int p_renderTooltip_2_,
int p_renderTooltip_3_) |
void |
renderTooltip(java.util.List<java.lang.String> p_renderTooltip_1_,
int p_renderTooltip_2_,
int p_renderTooltip_3_,
FontRenderer font) |
void |
renderTooltip(java.lang.String p_renderTooltip_1_,
int p_renderTooltip_2_,
int p_renderTooltip_3_) |
void |
resize(Minecraft p_resize_1_,
int p_resize_2_,
int p_resize_3_) |
void |
sendMessage(java.lang.String p_sendMessage_1_) |
void |
sendMessage(java.lang.String p_sendMessage_1_,
boolean p_sendMessage_2_) |
void |
setSize(int p_setSize_1_,
int p_setSize_2_) |
boolean |
shouldCloseOnEsc() |
void |
tick() |
static void |
wrapScreenError(java.lang.Runnable p_wrapScreenError_0_,
java.lang.String p_wrapScreenError_1_,
java.lang.String p_wrapScreenError_2_) |
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, func_212932_b, getEventListenerForPos, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocusedDefault
mouseMoved
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.Set<java.lang.String> ALLOWED_PROTOCOLS
protected final ITextComponent title
protected final java.util.List<IGuiEventListener> children
@Nullable protected Minecraft minecraft
protected ItemRenderer itemRenderer
public int width
public int height
protected final java.util.List<Widget> buttons
public boolean passEvents
protected FontRenderer font
private java.net.URI clickedLink
protected Screen(ITextComponent titleIn)
public ITextComponent getTitle()
public java.lang.String getNarrationMessage()
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
keyPressed
in interface INestedGuiEventHandler
public boolean shouldCloseOnEsc()
public void onClose()
protected <T extends Widget> T addButton(T p_addButton_1_)
protected void renderTooltip(ItemStack p_renderTooltip_1_, int p_renderTooltip_2_, int p_renderTooltip_3_)
public java.util.List<java.lang.String> getTooltipFromItem(ItemStack p_getTooltipFromItem_1_)
public void renderTooltip(java.lang.String p_renderTooltip_1_, int p_renderTooltip_2_, int p_renderTooltip_3_)
public void renderTooltip(java.util.List<java.lang.String> p_renderTooltip_1_, int p_renderTooltip_2_, int p_renderTooltip_3_)
public void renderTooltip(java.util.List<java.lang.String> p_renderTooltip_1_, int p_renderTooltip_2_, int p_renderTooltip_3_, FontRenderer font)
protected void renderComponentHoverEffect(ITextComponent p_renderComponentHoverEffect_1_, int p_renderComponentHoverEffect_2_, int p_renderComponentHoverEffect_3_)
protected void insertText(java.lang.String p_insertText_1_, boolean p_insertText_2_)
public boolean handleComponentClicked(ITextComponent p_handleComponentClicked_1_)
public void sendMessage(java.lang.String p_sendMessage_1_)
public void sendMessage(java.lang.String p_sendMessage_1_, boolean p_sendMessage_2_)
public void init(Minecraft p_init_1_, int p_init_2_, int p_init_3_)
public void setSize(int p_setSize_1_, int p_setSize_2_)
public java.util.List<? extends IGuiEventListener> children()
children
in interface INestedGuiEventHandler
protected void init()
public void tick()
public void removed()
public void renderBackground()
public void renderBackground(int p_renderBackground_1_)
public void renderDirtBackground(int p_renderDirtBackground_1_)
public boolean isPauseScreen()
private void confirmLink(boolean p_confirmLink_1_)
private void openLink(java.net.URI p_openLink_1_)
public static boolean hasControlDown()
public static boolean hasShiftDown()
public static boolean hasAltDown()
public static boolean isCut(int p_isCut_0_)
public static boolean isPaste(int p_isPaste_0_)
public static boolean isCopy(int p_isCopy_0_)
public static boolean isSelectAll(int p_isSelectAll_0_)
public void resize(Minecraft p_resize_1_, int p_resize_2_, int p_resize_3_)
public static void wrapScreenError(java.lang.Runnable p_wrapScreenError_0_, java.lang.String p_wrapScreenError_1_, java.lang.String p_wrapScreenError_2_)
protected boolean isValidCharacterForName(java.lang.String p_isValidCharacterForName_1_, char p_isValidCharacterForName_2_, int p_isValidCharacterForName_3_)
public boolean isMouseOver(double p_isMouseOver_1_, double p_isMouseOver_3_)
isMouseOver
in interface IGuiEventListener
public Minecraft getMinecraft()