code: public static void sendAction(ActionType action, MalisisSlot slot, int code)
  	{
  		if (action == null || current() == null || current().inventoryContainer == null)
  			return;
  
  		int inventoryId = slot != null ? slot.getInventoryId() : 0;
  		int slotNumber = slot != null ? slot.getSlotIndex() : 0;
  
  		current().inventoryContainer.handleAction(action, inventoryId, slotNumber, code);
  		InventoryActionMessage.sendAction(action, inventoryId, slotNumber, code);
  	}
docs: Sends a GUI action to the server.
  
  @param action the action
  @param slot the slot
  @param code the keyboard code