Class REMIScreen
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
emi.shims.java.com.unascribed.retroemi.REMIScreen
- All Implemented Interfaces:
Element,ParentElement
- Direct Known Subclasses:
BoMScreen,ConfigEnumScreen,ConfigPresetScreen,ConfigScreen,RecipeScreen
-
Field Summary
FieldsFields inherited from class net.minecraft.src.GuiScreen
allowUserInput, buttonList, fontRenderer, height, mc, widthFields inherited from class net.minecraft.src.Gui
icons, optionsBackground, statIcons, zLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends Drawable>
TaddDrawable(T drawable) addDrawableChild(T drawableElement) protected <T extends Element>
TaddSelectableChild(T child) children()Gets a list of all child GUI elements.protected voidclose()final booleanReturns true if this GUI should pause the game when it is displayed in single-playerfinal voiddrawScreen(int var1, int var2, float var3) Draws the screen and all the components in it.@Nullable ElementvoidHandles keyboard input.voidHandles mouse input.protected voidinit()voidinitGui()Adds the buttons (and other controls) to the screen in question.final booleanfinal voidkeyTyped(char var1, int var2) Fired when a key is typed.final voidmouseClicked(int var1, int var2, int var3) Called when the mouse is clicked.final voidmouseMovedOrUp(int var1, int var2, int var3) Called when the mouse is moved or a mouse button is released.final voidCalled when the screen is unloaded.protected voidprotected voidrender(DrawContext raw, int mouseX, int mouseY, float delta) protected voidprotected voidfinal voidsetDragging(boolean dragging) voidsetFocused(@Nullable Element focused) protected booleanprotected booleanMethods inherited from class net.minecraft.src.GuiScreen
actionPerformed, confirmClicked, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, isCtrlKeyDown, isShiftKeyDown, mouseClickMove, setClipboardString, setWorldAndResolution, updateScreenMethods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface emi.shims.java.net.minecraft.client.gui.Element
isMouseOver, mouseMovedMethods inherited from interface emi.shims.java.net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, isFocused, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
client
-
title
-
-
Constructor Details
-
REMIScreen
-
-
Method Details
-
initGui
public void initGui()Description copied from class:GuiScreenAdds the buttons (and other controls) to the screen in question. -
drawScreen
public final void drawScreen(int var1, int var2, float var3) Description copied from class:GuiScreenDraws the screen and all the components in it.- Overrides:
drawScreenin classGuiScreen
-
handleKeyboardInput
public void handleKeyboardInput()Description copied from class:GuiScreenHandles keyboard input.- Overrides:
handleKeyboardInputin classGuiScreen
-
handleMouseInput
public void handleMouseInput()Description copied from class:GuiScreenHandles mouse input.- Overrides:
handleMouseInputin classGuiScreen
-
keyTyped
public final void keyTyped(char var1, int var2) Description copied from class:GuiScreenFired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e). -
mouseClicked
public final void mouseClicked(int var1, int var2, int var3) Description copied from class:GuiScreenCalled when the mouse is clicked.- Overrides:
mouseClickedin classGuiScreen
-
mouseMovedOrUp
public final void mouseMovedOrUp(int var1, int var2, int var3) Description copied from class:GuiScreenCalled when the mouse is moved or a mouse button is released. Signature: (mouseX, mouseY, which) which==-1 is mouseMove, which==0 or which==1 is mouseUp- Overrides:
mouseMovedOrUpin classGuiScreen
-
doesGuiPauseGame
public final boolean doesGuiPauseGame()Description copied from class:GuiScreenReturns true if this GUI should pause the game when it is displayed in single-player- Overrides:
doesGuiPauseGamein classGuiScreen
-
onGuiClosed
public final void onGuiClosed()Description copied from class:GuiScreenCalled when the screen is unloaded. Used to disable keyboard repeat events- Overrides:
onGuiClosedin classGuiScreen
-
shouldCloseOnEsc
protected boolean shouldCloseOnEsc() -
init
protected void init() -
shouldPause
protected boolean shouldPause() -
render
-
renderBackgroundTexture
-
renderBackground
-
close
protected void close() -
isDragging
public final boolean isDragging()- Specified by:
isDraggingin interfaceParentElement
-
setDragging
public final void setDragging(boolean dragging) - Specified by:
setDraggingin interfaceParentElement
-
getFocused
- Specified by:
getFocusedin interfaceParentElement
-
setFocused
- Specified by:
setFocusedin interfaceParentElement
-
children
Description copied from interface:ParentElementGets a list of all child GUI elements.- Specified by:
childrenin interfaceParentElement
-
addDrawableChild
-
addDrawable
-
addSelectableChild
-
remove
-