public interface IContainerInputHandler
| 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) |
boolean keyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyCode)
gui - An instance of the currentscreenkeyChar - The character representing the keyPresskeyCode - The KeyCode as defined in Keyboardvoid onKeyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyID)
gui - An instance of the currentscreenkeyChar - The character representing the keyPresskeyID - The KeyCode as defined in Keyboardboolean lastKeyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyID)
gui - An instance of the currentscreenkeyChar - The character representing the keyPresskeyID - The KeyCode as defined in Keyboardboolean mouseClicked(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button)
gui - 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}void onMouseClicked(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button)
gui - 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}void onMouseUp(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button)
gui - 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}boolean mouseScrolled(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int scrolled)
gui - 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.void onMouseScrolled(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int scrolled)
gui - 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.void onMouseDragged(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
int button,
long heldTime)
gui - 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