public class NEIController extends java.lang.Object implements IContainerSlotClickHandler, IContainerInputHandler
| Modifier and Type | Field and Description |
|---|---|
static FastTransferManager |
fastTransferManager |
static GuiContainerManager |
manager |
| Constructor and Description |
|---|
NEIController() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSlotClick(net.minecraft.client.gui.inventory.GuiContainer gui,
int slotIndex,
int button,
Slot slot,
int modifier) |
void |
beforeSlotClick(net.minecraft.client.gui.inventory.GuiContainer gui,
int slotIndex,
int button,
Slot slot,
int modifier) |
static boolean |
canUseDeleteMode() |
static boolean |
getDeleteMode() |
boolean |
handleSlotClick(net.minecraft.client.gui.inventory.GuiContainer gui,
int slotIndex,
int button,
Slot slot,
int modifier,
boolean eventconsumed) |
static boolean |
isSpreading(net.minecraft.client.gui.inventory.GuiContainer gui) |
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 keyCode)
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
|
static void |
load() |
static void |
load(net.minecraft.client.gui.inventory.GuiContainer gui) |
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) |
static void |
processCreativeCycling(InventoryPlayer inventory) |
static void |
toggleDeleteMode() |
static void |
updateUnlimitedItems(InventoryPlayer inventory) |
public static GuiContainerManager manager
public static FastTransferManager fastTransferManager
public static void load()
public static void load(net.minecraft.client.gui.inventory.GuiContainer gui)
public static boolean isSpreading(net.minecraft.client.gui.inventory.GuiContainer gui)
public static void updateUnlimitedItems(InventoryPlayer inventory)
public static void processCreativeCycling(InventoryPlayer inventory)
public void beforeSlotClick(net.minecraft.client.gui.inventory.GuiContainer gui,
int slotIndex,
int button,
Slot slot,
int modifier)
beforeSlotClick in interface IContainerSlotClickHandlerpublic boolean handleSlotClick(net.minecraft.client.gui.inventory.GuiContainer gui,
int slotIndex,
int button,
Slot slot,
int modifier,
boolean eventconsumed)
handleSlotClick in interface IContainerSlotClickHandlerpublic void afterSlotClick(net.minecraft.client.gui.inventory.GuiContainer gui,
int slotIndex,
int button,
Slot slot,
int modifier)
afterSlotClick in interface IContainerSlotClickHandlerpublic boolean lastKeyTyped(net.minecraft.client.gui.inventory.GuiContainer gui,
char keyChar,
int keyCode)
IContainerInputHandlerlastKeyTyped in interface IContainerInputHandlergui - An instance of the currentscreenkeyChar - The character representing the keyPresskeyCode - The KeyCode as defined in Keyboardpublic 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 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 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 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 pressedpublic 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 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 static boolean canUseDeleteMode()
public static void toggleDeleteMode()
public static boolean getDeleteMode()