public class PopupInputHandler extends java.lang.Object implements IContainerInputHandler
| Constructor and Description |
|---|
PopupInputHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
keyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyCode)
Only use this for things like input boxes that have to be 'focused' first and will not conflict with others
|
boolean |
lastKeyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyID)
This version of keyTyped is called if the key event has not been handled by the first pass, use this for key bindings that work globally
|
boolean |
mouseClicked(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button)
Called when the mouse is clicked in the gui
|
boolean |
mouseScrolled(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int scrolled) |
void |
onKeyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyID)
This version of keyTyped is passive and will be called on every input handler before keyTyped is processed
|
void |
onMouseClicked(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button)
This version of mouseClicked is passive and will be called on every input handler before mouseClicked is processed
|
void |
onMouseDragged(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button,
long heldTime)
This version of mouseClicked is passive and will be called on every input handler before mouseClicked is processed
|
void |
onMouseScrolled(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int scrolled)
This version of mouseScrolled is passive and will be called on every input handler before mouseScrolled is processed
|
void |
onMouseUp(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button) |
public boolean keyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyCode)
IContainerInputHandlerkeyTyped in interface IContainerInputHandlergui - An instance of the currentscreenkeyChar - The character representing the keyPresskeyCode - The KeyCode as defined in Keyboardpublic boolean mouseClicked(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button)
IContainerInputHandlermouseClicked in interface IContainerInputHandlergui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topbutton - The button index being pressed, {0 = Left Click, 1 = Right Click, 2 = Middle Click}public void onKeyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyID)
IContainerInputHandleronKeyTyped in interface IContainerInputHandlergui - An instance of the currentscreenkeyChar - The character representing the keyPresskeyID - The KeyCode as defined in Keyboardpublic boolean lastKeyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyID)
IContainerInputHandlerlastKeyTyped in interface IContainerInputHandlergui - An instance of the currentscreenkeyChar - The character representing the keyPresskeyID - The KeyCode as defined in Keyboardpublic void onMouseClicked(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button)
IContainerInputHandleronMouseClicked in interface IContainerInputHandlergui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topbutton - The button index being pressed, {0 = Left Click, 1 = Right Click, 2 = Middle Click}public void onMouseUp(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button)
onMouseUp in interface IContainerInputHandlergui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topbutton - The button index being released, {0 = Left Click, 1 = Right Click, 2 = Middle Click}public boolean mouseScrolled(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int scrolled)
mouseScrolled in interface IContainerInputHandlergui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topscrolled - The number of notches scrolled. Positive for up.public void onMouseScrolled(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int scrolled)
IContainerInputHandleronMouseScrolled in interface IContainerInputHandlergui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topscrolled - The number of notches scrolled. Positive for up.public void onMouseDragged(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button,
long heldTime)
IContainerInputHandleronMouseDragged in interface IContainerInputHandlergui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topbutton - The button index being pressed, {0 = Left Click, 1 = Right Click, 2 = Middle Click}heldTime - The number of milliseconds since the button was first pressed